#include <iostream>
using namespace std;
int main()
{
int x,y;
cout<<"请输入x:";
cin>>x;
if(x>=1)
{
y=x-1;
cout<<"y="<<y;
}
else
{
y=-x+1;
cout<<"y=1-x"<<y;
}
return 0;
}