class Point
{ private int x, y;
public Point (int x, int y)
{this.x = x; this.y = y;}
public int getX ( ) { return x; }
public int getY ( ) { return y; }
}
class ScaledPoint extends Point
{ private int c;
public ScaledPoint (int x, int y, int c)
{ this.x = x; this.y = y; this.c = c;}
public void getC ( ) { return c; }
}