#include <iostream>
using namespace std;

class point{
public:
     int x;
     void left(int n) {
      //점을 왼쪽으로 n만큼 이동
      x = x - n;
     }


     void right(int n) {
      //점을 오른쪽으로 n만큼 이동
      x = x + n;
     }


     int getLocation() {
      //점의 현재 위치를 반환
      return x;
     }
};




int main(){
 point pt;
 
 cout << "좌표입력 : ";
 cin >> pt.x;
 pt.left(3);        //임의로 왼쪽 3 이동시킴
 pt.right(6);    //임의로 오른쪽 6 이동시킴
 
 int a = pt.getLocation();    //a변수 만들어서 포인트 받아옴
 cout << a << endl;    //출력!

 return 0;
}