#include using namespace std; int p; int main() { cin>>p; printf("%02d:%02d\n",10+p/100,(p%100)*60/100); return 0; }