#include<iostream>
#include<cstring>
using namespace std;
class base{
int x,y;
public:
base(int x=0,int y=0){
this->x = x;
this->y = y;
}
void get_xy(int &a,int &b){
a = x;
b = y;
}
friend base operator--(base &ob,int n);
};
base operator--(base &ob,int n){
ob.x--;
ob.y--;
return ob;
}
int main ()
{
int c,d;
base obj(1000,2000);
obj--;
obj.get_xy(c,d);
cout<<c<<" "<<d;
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGNzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmNsYXNzIGJhc2V7CmludCB4LHk7CnB1YmxpYzoKYmFzZShpbnQgeD0wLGludCB5PTApewp0aGlzLT54ID0geDsKdGhpcy0+eSA9IHk7Cn0Kdm9pZCBnZXRfeHkoaW50ICZhLGludCAmYil7CmEgPSB4OwpiID0geTsKfQpmcmllbmQgYmFzZSBvcGVyYXRvci0tKGJhc2UgJm9iLGludCBuKTsKfTsKYmFzZSBvcGVyYXRvci0tKGJhc2UgJm9iLGludCBuKXsKb2IueC0tOwpvYi55LS07CnJldHVybiBvYjsKfQoKaW50IG1haW4gKCkKewogICAgaW50IGMsZDsKICAgIGJhc2Ugb2JqKDEwMDAsMjAwMCk7CiAgICBvYmotLTsKICAgIG9iai5nZXRfeHkoYyxkKTsKICAgIGNvdXQ8PGM8PCIgIjw8ZDsKICAgIHJldHVybiAwOwp9Cgo=