A = int(input()) H = A // 100 M = A % 100 * 60 // 100 print("{:02d}:{:02d}".format(10 + H, M))