def main(): A = int(input()) t = round((A / 100) * 60) h = int(10 + t // 60) m = int(t % 60) print(f'{h}:{m:0>2}') main()