#!/usr/bin/env python n = int(input()) hour, mod = divmod(n,100) minute = int(mod * 60 / 100) print('{:02}:{:02}'.format(hour+10,minute))