import java.util.HashSet; import java.util.Scanner; public class Yukicoder52 { static HashSet hash = new HashSet(); static String s = ""; public static void main(String[] args) { Scanner sc = new Scanner(System.in); s = sc.next(); check("", 0, s.length()-1); System.out.println(hash.size()); } static void check(String pat, int nowS, int nowE) { if (pat.length() == s.length()) { hash.add(pat); return; } check(pat + s.charAt(nowS), nowS+1, nowE); check(pat + s.charAt(nowE), nowS, nowE-1); } }