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