//No.104 国道 import java.util.*; import java.io.*; import static java.util.Arrays.*; import static java.lang.Math.*; public class No104 { 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(); int ans = 1; for (int i=0; i