시간 제한
메모리 제한
Someone is waiting at a secret location and has sent a text message with the coordinates of their location. The message contains the latitude and longitude coordinates in degrees, minutes, and seconds. Of course, the message is encoded so you must write a program to decode the message. The message is 6 lines and the number of characters in each line corresponds to the coordinates of the secret location.
There are six lines of input.
There should be two lines of output. The first line will start with the word Latitude followed by three positive integers and the integers will be separated by colons. The second line will start with the word Longitude followed by three positive integers and the integers will be separated by colons. The output should have the following format.
Latitude x1:x2:x3Longitude x4:x5:x6There should be one space between the first word on each line and the first positive integer on the line. The variable xi (1≤ i ≤ 6) is the number of characters in the ith line of input.
Latitude x1:x2:x3Longitude x4:x5:x6