P29981 [洛谷] [yLOI2022] Check-in Problem
普及-
题目描述

Problem Description

Given a string \( s \) of length 8, please count the number of uppercase letters, lowercase letters, and digits in \( s \).

Input Format

The input consists of a single line containing a string \( s \) of length 8.

Output Format

Output a single line with three integers, representing respectively:

  • The number of digit characters in \( s \).
  • The number of lowercase letters in \( s \).
  • The number of uppercase letters in \( s \).

Sample Input and Output

Sample Input #1

yLOI2022

Sample Output #1

4 1 3

Sample Input #2

IAKIOIOI

Sample Output #2

0 0 8

Sample Input #3

1n2s0e1s

Sample Output #3

4 4 0

Notes

Data Size and Constraints

For 100% of the test cases, it is guaranteed that \( s \) has a length of 8 and contains only uppercase letters, lowercase letters, and digits.

The following table indicates the presence of each character type in the test cases, where √ indicates presence and × indicates absence.

Test Case Number Digits Lowercase Letters Uppercase Letters
1 √ × ×
2 × √ ×
3 × × √
4 √ √ ×
5 √ × √
6 × √ √
7 √ √ √
8 √ √ √
9 √ √ √
10 √ √ √
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
yLOI2022
样例输出
4 1 3