a = int(input()) hour = a // 100 minute = int((a % 100) * 0.6) print(10 + hour,":",str(minute).zfill(2),sep = "")