#include int main(){ int a,h,m; scanf("%d",&a); if(a<10||a>1000){return 0;} h=a/100; m=((a-h*100)/100)*60; printf("%d:%d\n",h,m); }