#include<iostream> using namespace std; int main(){ int a,d,f; char z,x,s='-'; scanf("%2d%6d%3d",&a,&d,&f); cout<<f*-1<<s<<a*1<<s<<d*-1; }