#include int main(){ int len, M; int H, mod; scanf("%d", &len); M = len*1000/(100*1000/60); H = M/60; mod = M%60; printf("%2d:%02d\n", 10 + H, mod); return 0; }