a = int(input()) H = 10+a/100 M = (a%100)/100*60 print("%2d:%02d" % (H, M))