#include <iostream>
using namespace std;
class Point {
private:
int x;
int y;
public:
Point() { };
friend ostream& operator<< (ostream& os, const Point& P)
{
return os << P.x << ","<<P.y;
};
friend istream& operator>> (istream& os, Point& P)
{
os >> P.x >> P.y;
return os;
};
};
int main()
{
Point p;
while (cin >> p) {
cout << p << endl;
}
return 0;
}