import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	}
} Main public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	} main {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	} Scanner sca = new Scanner(System.in); sca new Scanner(System.in) String src = sca.next(); src sca.next() sca.next sca if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		} src.equals("ABC") src.equals src "ABC" {
			System.out.println("ARC");
		} System.out.println("ARC") System.out.println System.out System System.out "ARC" if(src.equals("ARC")) {
			System.out.println("ABC");
		} src.equals("ARC") src.equals src "ARC" {
			System.out.println("ABC");
		} System.out.println("ABC") System.out.println System.out System System.out "ABC" sca.close() sca.close sca String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		String src = sca.next();
		if(src.equals("ABC")) {
			System.out.println("ARC");
		}
		else if(src.equals("ARC")) {
			System.out.println("ABC");
		}

		// 後始末
		sca.close();
	}
}