Secret Location

No attempts yetTime limit1sMemory limit128 MB

Problem

Someone is waiting at a secret location and has sent you a text message with the coordinates of their position. The message contains the latitude and longitude in degrees, minutes, and seconds. The message is encoded, so you must write a program to decode it. The message consists of six lines, and the number of characters in each line corresponds to a coordinate of the secret location.

Trailing spaces at the end of a line are not counted.

Input

The input consists of six lines.

Output

Print two lines. The first line starts with the word Latitude, followed by three positive integers separated by colons (:). The second line starts with the word Longitude, followed by three positive integers separated by colons. Use the following format.

Latitude x1:x2:x3
Longitude x4:x5:x6

There is exactly one space between the first word on each line and the first positive integer. The value $x_i$ ($1 \le i \le 6$) is the number of characters in the $i$-th line of the input.