#include <iostream> using namespace std; int main(){ int nian,yue,ri; char c; cin>>ri>>c>>nian>>c>>yue; cout<<yue<<c<<ri<<c<<nian; }