import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String S=sc.next(); String c=new String(S); char s[]=S.toCharArray(); int n=s.length; ArrayList ans=new ArrayList<>(); for(int i=0;i<(1<>j)%2==0){ a+=S.substring(x,x+1); x++; } else { a+=S.substring(y,y+1); y--; } } if(!ans.contains(a)){ ans.add(a); } } System.out.println(ans.size()); }}