import java.util.Scanner;


public class Main {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
} Main public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  } main {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  } catch (Exception e) {
		  e.printStackTrace();
	  } Exception e {
		  e.printStackTrace();
	  } e.printStackTrace() e.printStackTrace e {
		  stdIn.close();
	  } stdIn.close() stdIn.close stdIn {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } String preContestName = stdIn.next(); preContestName stdIn.next() stdIn.next stdIn if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return; !preContestName.equals("ABC") && !preContestName.equals("ARC") !preContestName.equals("ABC") preContestName.equals("ABC") preContestName.equals preContestName "ABC" !preContestName.equals("ARC") preContestName.equals("ARC") preContestName.equals preContestName "ARC" return; char[] postContestName = preContestName.toCharArray(); postContestName preContestName.toCharArray() preContestName.toCharArray preContestName if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  } postContestName[1] == 'B' postContestName[1] postContestName 1 'B' {
			  postContestName[1] = 'R';
		  } postContestName[1] = 'R' postContestName[1] postContestName 1 'R' if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  } postContestName[1] == 'R' postContestName[1] postContestName 1 'R' {
			  postContestName[1] = 'B';
		  } postContestName[1] = 'B' postContestName[1] postContestName 1 'B' System.out.println(postContestName) System.out.println System.out System System.out postContestName String[] args args public class Main {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
} public class Main {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
} Main
import java.util.Scanner;


public class Main {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
}