TTC '18 Contest 2 P1 - Easy or Hard

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

This is problem 1 of a contest. As a first problem, it should be easy, right?

There are N people attempting the same problem. After the finishing the problem, each person is given a single card. They are to write 1 on the card if they believed the problem was difficult, or 2 if the problem was far too easy.

Given the results, can you determine for yourself if the problem was easy enough?

Input Specification

The first line will contain an integer N (1 \le N \le 1000). N is guaranteed to be an odd number.

The next line will contain N space separated integers a_i, each being either the number 1 or 2.

Output Specification

There will be a single line of output.

If there was even a single person that found the question to be difficult, you are to output Too hard!.

Otherwise, output Perfectly easy.

Sample Input 1

5
1 2 1 1 1

Sample Output 1

Too hard!

Sample Input 2

7
2 2 2 2 2 2 2

Sample Output 2

Perfectly easy

Comments

There are no comments at the moment.