# include<iostream> using namespace std; int main(){ int n,y,r; scanf("%d-%d-%d",&r,&n,&y); printf("%d-%d-%d",y,r,n); return 0; }