#include <stdio.h>
typedef class A
{
public :
A()
{
}
virtual void SeyHello(void);
}A_t;
typedef class B : public A
{
public :
B()
{
}
void SeyHello(void)
{
printf("BBBBBB\n");
}
}B_t;
typedef class C : public A
{
public :
C()
{
}
void SeyHello(void)
{
printf("CCCCCC\n");
}
}C_t;
int main()
{
int input_num;
A_t *a;
scanf("%d",&input_num);
if(input_num%2==0)
{
a=new B_t();
}
else
{
a=new C_t();
}
a->SeyHello();
return 0;
}