{"raw_statement":[{"iden":"statement","content":"Do you remember a kind cartoon \"Beauty and the Beast\"? No, no, there was no firing from machine guns or radiation mutants time-travels!\n\nThere was a beauty named Belle. Once she had violated the Beast's order and visited the West Wing. After that she was banished from the castle...\n\nEverybody was upset. The beautiful Belle was upset, so was the Beast, so was Lumiere the candlestick. But the worst thing was that Cogsworth was upset. Cogsworth is not a human, but is the mantel clock, which was often used as an alarm clock.\n\nDue to Cogsworth's frustration all the inhabitants of the castle were in trouble: now they could not determine when it was time to drink morning tea, and when it was time for an evening stroll.\n\nFortunately, deep in the basement are lying digital clock showing the time in the format _HH:MM_. Now the residents of the castle face a difficult task. They should turn Cogsworth's hour and minute mustache hands in such a way, that Cogsworth began to show the correct time. Moreover they need to find turn angles in degrees for each mustache hands. The initial time showed by Cogsworth is _12:00_.\n\nYou can only rotate the hands forward, that is, as is shown in the picture:\n\n<center>![image](https://espresso.codeforces.com/81510b32c214d7a8b6522bf11bd5063204762ae5.png)</center>As since there are many ways too select such angles because of full rotations, choose the smallest angles in the right (non-negative) direction.\n\nNote that Cogsworth's hour and minute mustache hands move evenly and continuously. Hands are moving independently, so when turning one hand the other hand remains standing still."},{"iden":"input","content":"The only line of input contains current time according to the digital clock, formatted as _HH:MM_ (00 ≤ _HH_ ≤ 23, 00 ≤ _MM_ ≤ 59). The mantel clock initially shows _12:00_.\n\nPretests contain times of the beginning of some morning TV programs of the Channel One Russia."},{"iden":"output","content":"Print two numbers _x_ and _y_ — the angles of turning the hour and minute hands, respectively (0 ≤ _x_, _y_ < 360). The absolute or relative error in the answer should not exceed 10 - 9."},{"iden":"examples","content":"Input\n\n12:00\n\nOutput\n\n0 0\n\nInput\n\n04:30\n\nOutput\n\n135 180\n\nInput\n\n08:17\n\nOutput\n\n248.5 102"},{"iden":"note","content":"**A note to the second example:** the hour hand will be positioned exactly in the middle, between 4 and 5."}],"translated_statement":[{"iden":"statement","content":"你还记得那种卡通《美女与野兽》吗？不，不，这里没有机关枪射击或辐射突变体的时间旅行！\n\n有一位名叫贝儿的美女。有一次她违反了野兽的命令，参观了西翼。之后她被赶出了城堡……\n\n所有人都很沮丧。美丽的贝儿沮丧，野兽沮丧，蜡烛台卢米埃尔也沮丧。但最糟糕的是，钟摆先生很沮丧。钟摆先生不是人类，而是一个壁炉钟，经常被用作闹钟。\n\n由于钟摆先生的沮丧，城堡里所有居民都陷入了困境：现在他们无法确定什么时候该喝早茶，什么时候该散步。\n\n幸运的是，在地下室深处，有一台数字时钟，以 _HH:MM_ 格式显示时间。现在城堡居民面临一项艰巨的任务：他们必须旋转钟摆先生的时针和分针，使钟摆先生显示正确的时间。此外，他们需要求出每个胡须指针旋转的角度（以度为单位）。钟摆先生的初始时间为 _12:00_。\n\n你只能向前旋转指针，即如图所示的方向：\n\n由于存在多种选择角度的方式（因完整旋转），请选择在右（非负）方向上的最小角度。\n\n注意：钟摆先生的时针和分针均匀且连续移动。指针独立移动，因此当旋转一个指针时，另一个指针保持静止。\n\n输入的唯一一行包含数字时钟显示的当前时间，格式为 _HH:MM_（#cf_span[00 ≤ ]_HH_#cf_span[ ≤ 23]，#cf_span[00 ≤ ]_MM_#cf_span[ ≤ 59]）。壁炉钟初始显示 _12:00_。\n\n预测试包含俄罗斯第一频道一些早晨电视节目的开始时间。\n\n请输出两个数字 #cf_span[x] 和 #cf_span[y] —— 分别为时针和分针旋转的角度（#cf_span[0 ≤ x, y < 360]）。答案的绝对或相对误差不应超过 #cf_span[10 - 9]。\n\n*对第二个示例的说明*：时针将恰好位于 4 和 5 的中间位置。"},{"iden":"input","content":"The only line of input contains current time according to the digital clock, formatted as _HH:MM_ (#cf_span[00 ≤ ]_HH_#cf_span[ ≤ 23], #cf_span[00 ≤ ]_MM_#cf_span[ ≤ 59]). The mantel clock initially shows _12:00_.Pretests contain times of the beginning of some morning TV programs of the Channel One Russia."},{"iden":"output","content":"Print two numbers #cf_span[x] and #cf_span[y] — the angles of turning the hour and minute hands, respectively (#cf_span[0 ≤ x, y < 360]). The absolute or relative error in the answer should not exceed #cf_span[10 - 9]."},{"iden":"examples","content":"Input12:00Output0 0Input04:30Output135 180Input08:17Output248.5 102"},{"iden":"note","content":"*A note to the second example:* the hour hand will be positioned exactly in the middle, between 4 and 5."}],"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ H \\in \\{0, 1, \\dots, 23\\} $ be the hour component of the current time.  \nLet $ M \\in \\{0, 1, \\dots, 59\\} $ be the minute component of the current time.  \n\n**Constraints**  \n$ 0 \\leq H \\leq 23 $, $ 0 \\leq M \\leq 59 $\n\n**Objective**  \nCompute the smallest non-negative angles $ x $ and $ y $ (in degrees) such that:  \n- The hour hand rotates from 12:00 to the position corresponding to $ H $ hours and $ M $ minutes.  \n- The minute hand rotates from 12:00 to the position corresponding to $ M $ minutes.  \n\nBoth hands move continuously and independently.  \n\n$$\nx = \\left(30H + \\frac{M}{2}\\right) \\mod 360, \\quad y = 6M\n$$  \nwith $ 0 \\leq x, y < 360 $.","simple_statement":null,"has_page_source":false}