{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"Section1\"\u003e\r\n\tLittle \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"22\"\u003eOnuvob\u003c/span\u003e has learnt to read wall clock.Very often he loudly announces the time. He has a big clock in his room. There is also a mirror in the opposite side of the clock. Few days ago his mother noticed that sometimes \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"23\"\u003eOnuvob\u003c/span\u003e is announcing wrong time. She became worried and after some investigation she found, \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"24\"\u003eOnuvob\u003c/span\u003e has no problem in reading time from the clock, the thing is sometimes he reads from the clock in the mirror. So she told him\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\u003c!--[if gte vml 1]\u003e\u003cv:shapetype\r\n id\u003d\"_x0000_t75\" coordsize\u003d\"21600,21600\" o:spt\u003d\"75\" o:preferrelative\u003d\"t\"\r\n path\u003d\"m@4@5l@4@11@9@11@9@5xe\" filled\u003d\"f\" stroked\u003d\"f\"\u003e\r\n \u003cv:stroke joinstyle\u003d\"miter\"/\u003e\r\n \u003cv:formulas\u003e\r\n \u003cv:f eqn\u003d\"if lineDrawn pixelLineWidth 0\"/\u003e\r\n \u003cv:f eqn\u003d\"sum @0 1 0\"/\u003e\r\n \u003cv:f eqn\u003d\"sum 0 0 @1\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @2 1 2\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @3 21600 pixelWidth\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @3 21600 pixelHeight\"/\u003e\r\n \u003cv:f eqn\u003d\"sum @0 0 1\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @6 1 2\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @7 21600 pixelWidth\"/\u003e\r\n \u003cv:f eqn\u003d\"sum @8 21600 0\"/\u003e\r\n \u003cv:f eqn\u003d\"prod @7 21600 pixelHeight\"/\u003e\r\n \u003cv:f eqn\u003d\"sum @10 21600 0\"/\u003e\r\n \u003c/v:formulas\u003e\r\n \u003cv:path o:extrusionok\u003d\"f\" gradientshapeok\u003d\"t\" o:connecttype\u003d\"rect\"/\u003e\r\n \u003co:lock v:ext\u003d\"edit\" aspectratio\u003d\"t\"/\u003e\r\n\u003c/v:shapetype\u003e\u003cv:shape id\u003d\"_x0000_s1034\" type\u003d\"#_x0000_t75\" style\u003d\u0027position:absolute;\r\n left:0;text-align:left;margin-left:0;margin-top:-.15pt;width:141.5pt;height:112.75pt;\r\n z-index:-1;mso-wrap-distance-left:9.05pt;mso-wrap-distance-right:9.05pt;\r\n mso-position-horizontal:left\u0027 wrapcoords\u003d\"-95 0 -95 21475 21600 21475 21600 0 -95 0\"\r\n filled\u003d\"t\"\u003e\r\n \u003cv:fill color2\u003d\"black\"/\u003e\r\n \u003cv:imagedata src\u003d\"http://uva.onlinejudge.org/external/116/e_files/image012.jpg\" o:title\u003d\"\"/\u003e\r\n \u003cw:wrap type\u003d\"square\"/\u003e\r\n\u003c/v:shape\u003e\u003c![endif]--\u003e\u003c!--[if !vml]--\u003e\t\t\u003cimg align\u003d\"left\" height\u003d\"150\" hspace\u003d\"12\" src\u003d\"http://uva.onlinejudge.org/external/116/p11650.jpg\" v:shapes\u003d\"_x0000_s1034\" width\u003d\"189\" /\u003e\u003c!--[endif]--\u003e\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\t\t\u003cspan data-scayt_word\u003d\"“Onuvob\" data-scaytid\u003d\"5\"\u003e\u0026ldquo;Onuvob\u003c/span\u003e, you shouldn\u0026rsquo;t read time from the clock in the mirror.\u0026rdquo;\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\t\t\u0026ldquo;But why ma?\u0026rdquo; curious \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"4\"\u003eOnuvob\u003c/span\u003e asked.\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\t\t\u0026ldquo;Because it gives wrong time\u0026rdquo; mother replied.\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\t\tNow \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"7\"\u003eOnuvob\u003c/span\u003e looked at the two clocks and realized his mother was telling the truth. Two clocks were not matching. He thought for some time and shouted, \u0026ldquo;But ma, we can calculate the real time from the clock in the mirror, can\u0026rsquo;t we?\u0026rdquo;\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\" style\u003d\"text-align:justify\"\u003e\r\n\t\tCan we? Now you have to answer.\u003c/p\u003e\r\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe first line of the input contains an integer T (T \u0026lt; 1000), number of test cases. Each of the following T lines will contain the time \u003cspan data-scayt_word\u003d\"Onuvob\" data-scaytid\u003d\"9\"\u003eOnuvob\u003c/span\u003e reads from the clock in the mirror. The time will be in the following format:\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan data-scayt_word\u003d\"HH\" data-scaytid\u003d\"13\"\u003e\u003cspan data-scayt_word\u003d\"HH\" data-scaytid\u003d\"46\"\u003eHH\u003c/span\u003e\u003c/span\u003e:MM\u003c/p\u003e\r\n\u003cp\u003e\r\n\tHours and minutes both are integer and the time is always valid.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tFor each line of Input you have to produce one line of output which will contain the real time, in the same format, namely:\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan data-scayt_word\u003d\"HH\" data-scaytid\u003d\"15\"\u003eHH\u003c/span\u003e:MM\u003c/p\u003e\r\n\u003cp\u003e\r\n\tSee sample input and output for more clarification.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\r\n2\r\n12:00\r\n10:09\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\r\n12:00\r\n01: 51\u003c/pre\u003e"}}]}