Counting Threes
Input: Standard Input (stdin)
Output: Standard Output (stdout)
Memory limit: 100 megabytes
Time limit: 1.0 seconds
Output: Standard Output (stdout)
Memory limit: 100 megabytes
Time limit: 1.0 seconds
Dani likes counting threes. Given a list of numbers, tell Dani how many of them are the number three.
Input
- The first line has a single integer N, the number of lines to follow, where 0\le N \le 20 is guaranteed.
- Each following line then contains a single integer less than 100 and greater than or equal to 1.
Output
- If you don’t see any threes then output:
This is a sad day - If you count a single three then output:
I found 1 three - If you count many threes then output:
I found x threes(wherexis replaced by the number of threes)
-
Sample Input 1
4 10 4 3 7
Sample Output 1
I found 1 three -
Sample Input 2
5 7 1 3 3 3
Sample Output 2
I found 3 threes