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