#PCBTAM0000018. Mã số giữ số 0 đầu (Preserve Leading Zeros)
Mã số giữ số 0 đầu (Preserve Leading Zeros)
Preserve Leading Zeros
Version: Phuoc Hung OJ Extended
Problem Statement
An identifier is stored as a string of digits , not as a number for arithmetic. Therefore, leading and trailing 0 digits are part of the identifier and must remain unchanged.
Print the original identifier, its length, and a new identifier prefixed with ID-. Do not convert the identifier to an integer first.
Input
One line contains digit string , possibly with leading zeros.
Output
Print three lines: the unchanged ; its character count; and ID- immediately followed by .
Subtasks
- Subtask 1 (100 points): ; every character is an ASCII digit from
0to9.
Examples
Example 1
Input
0007
Output
0007
4
ID-0007
Explanation. Identifier 0007 has four characters and retains its leading zeros in ID-0007.
Example 2
Input
0
Output
0
1
ID-0
Explanation. Identifier 0 is a one-character string, producing ID-0.
Example 3
Input
012300
Output
012300
6
ID-012300
Explanation. 012300 contains six characters; leading and trailing zeros are preserved.