a = int(input()) * 3 // 5 H = str(10 + a // 60) W = '0' + str(a % 60) print(H, W[-2:], sep=':')