#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
struct Points{
int x;
int y;
};
int main(int argc, const char * argv[]) {
string ifilename;
string ofilename;
cin >> ifilename;
cin >> ofilename;
ifstream ifile;
ofstream ofile;
ifile.open(ifilename, ios_base::in);
if (!ifile) {
cout<<"open in file fail!\n";
}
ofile.open(ofilename, ios_base::out);
if(!ofile)
cout<<"open out file fail!\n";
vector<Points> p;
int _x;
int _y;
while (ifile>>_x>>_y) {
p.push_back(Points{_x, _y});
}
for (int i=0; i<p.size(); i++) {
ofile<<p[i].x<<","<<p[i].y<<endl;
}
return 0;
}