a = int(input()) m = 6 * a // 10 h = 10 + m // 60 m %= 60 print("{:02d}:{:02d}".format(h, m))