h,m=10,int((int(input())*6)/10) while m>=60: h,m=h+1,m-60 h,m=str(h%24),str(m) if len(m)==1: m="0"+m print(h+":"+m)