Hết tiết học

View as PDF

Submit


Author:
Problem type
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points: 1 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Giờ học ở trường bắt đầu từ \(7h00\) sáng, mỗi tiết học mất \(45\) phút, sau tiết \(1\) và \(3\) được nghỉ \(10\) phút, sau tiết \(2\) và \(4\) được nghỉ 5 phút. Hãy cho biết giờ kết thúc tiết k .

Input

Số nguyên dương \(k\) \((1≤k≤5)\)

Output

Hai số nguyên lần lượt cho biết giờ và phút kết thúc tiết \(k\) .

sample input

2

sample output

8 40 

Comments

Most recent
Loading comments...

There are no comments at the moment.