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