#PCBTAM0000011. Mã hồ sơ từ số thứ tự (Record Code)
Mã hồ sơ từ số thứ tự (Record Code)
Record Code
Version: Phuoc Hung OJ Extended
Problem Statement
A record code consists of text prefix , a hyphen -, and a nonnegative serial number . The number must occupy at least four decimal digits. Pad it on the left with zero digits if necessary.
The width of four is a minimum: if has four or more digits, preserve all digits.
Input
The first line contains prefix . The second line contains nonnegative integer .
Output
Print the record code: prefix, hyphen, then the padded number, with no inserted spaces.
Subtasks
- Subtask 1 (100 points): ; ; consists only of ASCII letters.
Examples
Example 1
Input
TS
7
Output
TS-0007
Explanation. Pad with three zeros to get 0007, then prepend TS-.
Example 2
Input
A
1234
Output
A-1234
Explanation. already occupies four digits, so the result is A-1234.
Example 3
Input
ID
10000
Output
ID-10000
Explanation. occupies five digits and is not truncated: ID-10000.