a = int(input()) ans = a*60//100 h = 10+ans//60 m = ans%60 print("{:02}:{:02}".format(h, m))