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