시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 258 | 207 | 166 | 84.694% |
There are several proposals for converting a cat’s age to human age. One such approach is as follows:
For example, if a cat is 13-year old, the cat would be {(15) + (9) + [(13 – 2) * 4)]} = 68-year old in human age. Note that the above approach implies:
Given a cat’s age, convert it to human age.
There is only one input line; it contains two integers: y (0 ≤ y ≤ 20), indicating the year part of the cat’s age and m (0 ≤ m ≤ 11), indicating the month part of the cat’s age.
Print two integers indicating the cat’s age in human age (years and months). Note that the output value for months should not exceed 11.
13 0
68 0
0 5
6 3
1 7
20 3
5 7
38 4
20 11
99 8