package main import . "fmt" func main() { var a string Scan(&a) b:=a for { Println("? "+b+a) var x,y string Scan(&x,&y) if x=="!" || x=="" { return } b=string(y[1]) } }