import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N509 { public static void main(String[] args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String n=br.readLine(); int total=1; for(int i=0;i