import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); char[] cs=sc.next().toCharArray(); HashSet set=new HashSet<>(); for(int s=0;s<1<>shift)%2==1) { str+=cs[L]; ++L; }else { str+=cs[R-1]; --R; } } set.add(str); } System.out.println(set.size()); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }