a = int(input()) h = 10 m = 0 plus = 60*a/100 h+=plus//60 m+=plus%60 print(str(int(h))+":"+str(int(m)).zfill(2))