import java.util.Scanner; class Test { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); char[] s = in.next().toCharArray(); int n = 1; if(s.length == 0) System.out.println(1); for(int i=0; i