#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
int a;
int main() {
	cin >> a;
	int t = a / 10 * 6;
	cout << (10 + t / 60) << (t % 60 < 10 ? ":0" : ":") << t % 60 << endl;
	return 0;
}