import java.util.*;

public class hw
{

  static public class Foo
  {
    int f1(int x) { return x*x; }
    int f1(String s) { return s.length()*s.length(); }
    int f1(Double z) { return z.intValue()*z.intValue(); }
  }
  
  static public class Bar extends Foo
  {
    int f1(String s) { return s.length(); }
  }

  public static void main(String[] args)
  {
    Foo obj1 = new Bar();

    System.out.println(   obj1.f1(new Double(0.5))   );
    System.out.println(   obj1.f1("Huh")             );
    System.out.println(   obj1.f1(10)                );
  }
}