using System;
public class Program
{
interface i{
int getVal();
}
class a: i {
public int getVal() { return 1; }
class b: a {
public new int getVal() { return 1 + base.getVal(); }
public static void Main()
i aobj = new a();
i bobj = new b();
b directBobj = new b();
Console.WriteLine(aobj.getVal());
Console.WriteLine(bobj.getVal());
Console.WriteLine(directBobj.getVal());