CodeChef PESU ECC Chapter
← Arena·Practice·August 14, 2026

Count Digits

Easy
mathimplementation1s limit· 256 MB

Set by Raj

PRACTICE

Count Digits

Easy1s limit256 MB

Read a positive integer n and print the number of digits in it.

Input Format

A single line containing one positive integer n.

Output Format

A single integer — the number of digits in n.

Constraints

1 <= n <= 10^9

Sample

Input
12345
Output
5

Explanation

The number 12345 contains 5 digits.

Code
00:00
Loading editor…
Auto-saved
Custom Inputusing sample

Run uses this input. Submit always judges the hidden tests.