S = input() num = len(S) g = set() for mask in range(1<> bit & 1 == 1: t.append(T.pop(-1)) else: t.append(T.pop(0)) g.add("".join(t)) print(len(g))