#include<bits/stdc++.h> using namespace std; char a; int r,n,y; int main(){ cin>>r>>a>>n>>a>>y; cout<<y<<a<<r<<a<<n; return 0; }