using System;
interface IA
{
void foo();
}
class B
{
public void foo()
{
Console.WriteLine("B");
}
}
class C : B, IA
{
}
public class Test
{
public static void Main()
{
var x = new C();
IA a = x;
a.foo();
}
}
dXNpbmcgU3lzdGVtOwoKaW50ZXJmYWNlIElBCnsKICAgIHZvaWQgZm9vKCk7Cn0KCmNsYXNzIEIKewogICAgcHVibGljIHZvaWQgZm9vKCkKICAgIHsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiQiIpOwogICAgfQp9CgpjbGFzcyBDIDogQiwgSUEKewp9CgoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIHZhciB4ID0gbmV3IEMoKTsKICAgICAgICBJQSBhID0geDsKICAgICAgICBhLmZvbygpOwoJfQp9