#include <iostream>
#include <vector>
#include <utility>

int main() {
	std::pair<int, int> p; //for the current pair
	char comma; //For dumping commas into
	std::vector<std::pair<int, int>> v;
	
	while(std::cin >> p.first >> comma >> p.second) {
	    v.push_back(p);
	}
	
	for(auto it : v) {
		std::cout << "(" << it.first << ", " << it.second << ")" << std::endl;
	}
	
	return 0;
}