a = int(input()) hor = a // 100 min = int(( a % 100 )*0.6) print("{}:{:0=2}".format(hor+10,min))