#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; h=h+10; if(0<=m&&10>m){printf("%d:0%d",h,m);} else printf("%d:0%d",h,m); }