import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println("? " + s + s); while (true) { String s0 = sc.next(); String s1 = sc.next(); if (s0.equals("!")) { break; } System.out.println("? " + s1.charAt(1) + s); } sc.close(); } }