#include <iostream>
using namespace std;
class A
{
public:
void f() {cout<<"From A"<<endl;}
};
class B
{
public:
void f() {cout<<"From B"<<endl;}
};
class MI:public A,public B
{
public:
void g() {cout<<"From MI"<<endl;}
};
void main()
{
MI mi;
mi.A::f();
mi.B::f();
}