#include <iostream>
using namespace std;

class Cos {
public:
  int *x;
  int y;
  Cos(int *x, int y) : x(x), y(y) {}
};

ostream& operator<<(ostream &os, const Cos &c){
  os << "*c.x=" << *(c.x) << ", c.x=" << c.x;
  return os;
}

int main(){
  int p = 56;
  Cos c(&p,4);
  cout << "&p=" << &p << endl;
  cout << "*c.x " << *c.x << endl;
  cout << "c.x " << c.x << endl;
  cout << "c " << c << endl;

  int a = 100;
  int *w = &a;
  cout << "w " << *w << endl;
  return 0;
}