#81Easy
Digits in a string
Time: 1 s · Memory: 256 MB
- Strings
Statement
You are given a string. Find how many digit characters (0–9) it contains.
Input format
A single line — a string of to ASCII characters (codes –: letters, digits, punctuation and spaces).
Output format
A single integer — the number of digits.
Examples
Input
Agent 007
Output
3
Input
Janob 420 filmi 19:00 da
Output
7
Note
Check every character: '0' <= c <= '9'. Read the whole line: Python — input(), C++ — getline(cin, s), Go — ReadString('\n') of a bufio.Reader. cin >> s reads only the first word.
In the first example: 0, 0, 7 — the answer is .
