#include<bits/stdc++.h> using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int a;cin>>a; a=a*6/10; int h=10+a/60,m=a%60; cout<<setfill('0')<<setw(2)<<h<<":"<<setw(2)<<m<<endl; }