import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main_yukicoder52 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); int n = s.length; Set hs = new HashSet(); for (int i = 0; i < 0x1 << n; i++) { int st = 0; int en = n - 1; StringBuilder tmp = new StringBuilder(); for (int j = 0; j < n; j++) { if ((i & 0x1 << j) == 0) { tmp.append(s[st]); st++; } else { tmp.append(s[en]); en--; } } hs.add(tmp.toString()); } System.out.println(hs.size()); sc.close(); } }