package no052; import java.util.HashSet; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); int n = s.length; String[][] t = new String[(n+1)/2][2]; for(int i=0;i hs = new HashSet(); do { for(int i=0;i<(1<>j)&1]); } hs.add(sb.toString()); } } while(nextPermutation(p)); System.out.println(hs.size()); } static boolean nextPermutation(int[] p) { for(int a=p.length-2;a>=0;--a) { if(p[a]p[a]) { int t = p[a]; p[a] = p[b]; p[b] = t; for(++a, b=p.length-1;a