#include<stdio.h>
#include<string.h>
int main(){
    char S[3], b[]="ABC";
    gets(S);
    if(strcmp(S,b)==0)
        printf("They held an ABC last week, so they will hold an ARC this week.");
    else
        printf("They held an ARC last week, so they will hold an ABC this week.");
    return 0;
}
