#include<bits/stdc++.h>
using namespace std;
int main(){
int lwl;
string s,s1,s2;
cin>>s;
lwl=s.find(',');
s1=s.substr(0,p);
s2=s.substr(p+1,s.size()-p-1);
cout<<s2+','+s1;
return 0;
}
/**************************************************************
Problem: 1116
User: lidongcheng
Language: C++
Result: Compile Error
****************************************************************/