a = int(input()) x = (6 / 10) * a hour = int(x // 60 + 10) minute = int(x % 60) print(str(hour)+":"+str(minute).zfill(2))