Line Analysis#11780

Line Analysis

1 sekunda
256 megabajtów
Łatwe

Given lines. For each line, it is necessary to determine its type:

• purely text line – contains only Latin alphabet letters (both lowercase and uppercase);

• numeric line – contains only digits;

• mixed line – contains Latin letters, digits, and other symbols simultaneously.

Your task is to count the number of lines of each type.

Dane wejściowe

The first line contains an integer (1 \leq N \leq 10^4) – the number of lines in the input data.

The next lines contain the actual lines. The length of each line does not exceed 10^4 characters.

Dane wyjściowe

Print three numbers separated by spaces:

• the number of purely text lines;

• the number of numeric lines;

• the number of mixed lines

Przykłady

Przykład 1

Loading
Loading