import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); char[] char_Array = sc.nextLine().toCharArray(); sc.close(); char target = '0'; if (char_Array[0] == char_Array[1]) { target = char_Array[0];} else {target = char_Array[2];} for (int i = 0 ; i < char_Array.length; i++) { if (char_Array[i] != target) { System.out.println(i + 1 + " " +char_Array[i]); } } } }