#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X)) #define rrep(X,Y) for (int (X) = (Y)-1;(X) >=0;--(X)) #define all(X) (X).begin(),(X).end() #define fi first #define sc second using namespace std; typedef long long ll; typedef pair pii; typedef pair pll; const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}; int main() { int a; cin >> a; int h = a / 100, m = ((a-h*100)/10) * 6; h += 10; printf("%d:%02d\n", h, m); }