import std; void main () { // 末尾を必ずαにしたら勝てる char a = readln.chomp.to!char; writefln("? %s%s", a, a); while (true) { auto input = readln.split; if (input[0] == "!") break; auto S = input[1]; writefln("? %s%s", S[1], a); stdout.flush; } } void read (T...) (string S, ref T args) { import std.conv : to; import std.array : split; auto buf = S.split; foreach (i, ref arg; args) { arg = buf[i].to!(typeof(arg)); } }