e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 6: December 14 - 20. Char arrays 1

The youngest symbol

In the line consisting of Latin letters, find and print the youngest letter (the character having the smallest ASCII code), as well as the number of its repetitions in the line.

Input data

One line of Latin letters.

Output

Print the character with the smallest ASCII code and the number of its repetitions in the line.

Time limit 1 second
Memory limit 128 MiB
Input example #1
abrakadabra
Output example #1
a 5
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"