Спешно помогнете ми с решаването на задачата?


-19

Input

  • On the first line you will receive the number N – the number of questions in the test.
  • On the next N lines you will receive valid integer numbers in range 0 to 4,294,967,295

Output

  • On the first line, display all the answers in format a, b, c or d, separated by single space.
  • On the next 4 lines – on each line print the type of answer (a, b, c or d) and how many answers of this type are there in the test.

Constraints

  • N is an integer in range [1 … 30]
  • The numbers for answers will be in range [0…4,294,967,295]
  • Allowed memory: 16 MB
  • Allowed time: 0.1s

Examples

InputOutputComments  InputOutput
10
2
3
4
5
6
7
8
9
10
11
c d a b c d a b c d
Answer A: 2
Answer B: 2
Answer C: 3
Answer D: 3
2/4 = 0 (2) à c
3/4 = 0 (3) à d
4/4 = 1 (0) à a
5/4 = 1 (1) à b
6/4 = 1 (2) à c
7/4 = 1 (3) à d
8/4 = 2 (0) à a
9/4 = 2 (1) à b
10/4 = 2 (2) à c
11/4 = 2 (3) à d
5
56
654
236
56997
4555
a c a b d
Answer A: 2
Answer B: 1
Answer C: 1
Answer D: 1




Отговори



8
В SoftUni май има изпит... :D:D:D

от suzunov (321 точки)