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