#include<bits/stdc++.h>
using namespace std;
int main(){
	string s,t1,t2;
	getline(cin,s); 
	int p=s.find(',');
	t1=s.substr(0,p);
	t2=s.substr(p+1);
	cout<<t2<<","<<t1;
	return 0;
}

/**************************************************************
	Problem: 1116
	User: tangkaixuan
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2076 kb
****************************************************************/