#include #include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a; cin >> a; int tm=600+(a/100.0)*60; int h=tm/60; int m=tm%60; printf("%02d:%02d\n",h,m ); }