import java.util.*; import java.io.*; import static java.util.Arrays.*; import static java.lang.Math.*; public class No163_2 { static final InputStream in = System.in; static final PrintWriter out = new PrintWriter(System.out,false); static void solve() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); for (int i=0; i