#include using namespace std; typedef long long ll; typedef pair pii; #define pb push_back #define mp make_pair #define rep(i,n) for(int i=0;i<(n);++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); double n;cin >> n; n/=100; n*=60; int mi=600+n; int h=mi/60,m=mi%60; string ans=to_string(h)+':'; if(m<10) ans+='0'+to_string(m); else ans+=to_string(m); cout << ans << endl; }