import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	}

	public static void println(Object target) {
		System.out.println(target);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	}

	public static void println(Object target) {
		System.out.println(target);
	}
} Main public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	} main {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	} final String abc = "ABC"; abc "ABC" final String arc = "ARC"; arc "ARC" Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan String answer = s.equals(abc)
				? arc
				: abc; answer s.equals(abc)
				? arc
				: abc s.equals(abc) s.equals s abc arc abc println(answer) println answer String[] args args public static void println(Object target) {
		System.out.println(target);
	} println {
		System.out.println(target);
	} System.out.println(target) System.out.println System.out System System.out target Object target target public class Main {

	public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	}

	public static void println(Object target) {
		System.out.println(target);
	}
} public class Main {

	public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	}

	public static void println(Object target) {
		System.out.println(target);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		final String abc = "ABC";
		final String arc = "ARC";

		Scanner scan = new Scanner(System.in);

		String s = scan.nextLine();

		String answer = s.equals(abc)
				? arc
				: abc;

		println(answer);
	}

	public static void println(Object target) {
		System.out.println(target);
	}
}
