Олимпиадный тренинг

Задача 2953. Analysis of the digits of the number - 19


Задача

Темы: Цикл while
The first line contains the natural number n 
The second line contains the numbers A and B
Display the letter A (English) if the number A occurs more often than the number B
the letter B, if the number B (English) occurs in the number more often than the number A
= sign if digit A and digit B occur the same number of times

Sample input and output
test number Input Output
1 45545
4 5
In
2 12221
2 1
A