N = int(input()) S = N//10*6 K = S//60 L = S%60 if L%60 <= 9: L = "0" + str(L) else: L = str(L) K = str(10 + K) print(K+":"+L)