#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <string.h>

#define INF 1000000
#define IS_ODD( num )   ((num) & 1)
#define IS_EVEN( num )  (!IS_ODD( (num) ))

using namespace std;

int main()
{
    int i, j, k, p, q, m, n, t, x, y, z;
	
	stringstream ss;
	string str;
	
	str = "999:97 42:22 44:102300";

	ss << str;
	
	char ch;
	int temp, temp1;
	
	while (1) {
		if (ss.fail()) {
			break;
		}
		ss >> temp >> ch >> temp1;
		cout << temp << ":" << temp1 << endl;
	}
	
	return 0;
}
