#PCBTAM0000016. Nhãn số và đơn vị (Labeled Number and Unit)
Nhãn số và đơn vị (Labeled Number and Unit)
Labeled Number and Unit
Version: Phuoc Hung OJ Extended
Problem Statement
Given a text label , a nonnegative integer , and a unit , format one output line in this order: label, colon :, one space, decimal representation of , one space, and unit.
Do not change capitalization or spaces already present inside either text field.
Input
The first line contains label ; the second contains integer ; the third contains unit . The label and unit contain no tabs.
Output
Print exactly one line in the format label: number unit. Insert only the separator spaces after the colon and before the unit.
Subtasks
- Subtask 1 (100 points): ; characters; .
Examples
Example 1
Input
Quang duong
125
km
Output
Quang duong: 125 km
Explanation. Format the label Quang duong, number , and unit km as Quang duong: 125 km.
Example 2
Input
Khoi luong
0
kg
Output
Khoi luong: 0 kg
Explanation. Even zero must appear as digit 0 between the label and unit.
Example 3
Input
Số lượng
7
cái
Output
Số lượng: 7 cái
Explanation. Keep the Vietnamese characters in Số lượng and cái, inserting colon-space and one space before the unit.