#include <stdio.h>
#include <string.h>
int main (void){
  char word[100];
  char abc[] = "ABC";
  
  scanf("%s",word);
  if (strcmp(word,abc) == 0){
    printf("次週はARC");
  }else{
    printf("次週はABC");
  }
  return 0;
}
