提示: 欢迎访问OurACM平台。
Problem 1857 Clock in the mirror

Accept: 90    Submit: 237
Time Limit: 1000 mSec    Memory Limit : 32768 KB

Problem Description


Yr is on the English class,she is so sleepy that she want to know how long the class will last.So,she try to find out the current time.But the only clock is on the back wall of the classroom,and frequent turning might offend the teacher.
Clever as she is, Yr take out a mirror.Now,she can see the clock in the mirror.Unfortunately,the time in the mirror maybe not the real time.Now,it’s time for you to do her a favor.She will give you the time in the mirror and ask you to tell her the real time.

Input

Multiple cases.
Each case shows in one line as the format: hh:mm
All legal time is show in 12 hours system.

Output

One line for each case.Please output the real time in 12 hours system according to the time given in the format hh:mm.If the time YR tell you is illegal,please out put ”That is a joke.”.

Sample Input

9:00 12:00

Sample Output

03:00 That is a joke.

Source

FOJ有奖月赛-2009年11月

Submit  Back  Status  Discuss