abstract class Shape
{public Shape(){}
public float GetPerim(){return 0;}
}
class Rectangle extends Shape
{
private float x=0,y=0;
public Rectangle(float x,float y){
this.x=x;
this.y=y;
}
public float GetPerim()
{
return 2*(x+y);
}
}
class Circle ext