import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	} main {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s=scan.nextLine(); s scan.nextLine() scan.nextLine scan if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		} s.equals("ABC") s.equals s "ABC" {
			s=s.replace("ABC", "ARC");
		} s=s.replace("ABC", "ARC") s s.replace("ABC", "ARC") s.replace s "ABC" "ARC" {
			s=s.replace("ARC", "ABC");
		} s=s.replace("ARC", "ABC") s s.replace("ARC", "ABC") s.replace s "ARC" "ABC" System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		if(s.equals("ABC")) 
		{
			s=s.replace("ABC", "ARC");
		}
		else
		{
			s=s.replace("ARC", "ABC");
		}
		System.out.println(s);
	}

}
