s = input() se = set() for S in range(1<>i)&1: now += s[l] l += 1 else: now += s[r] r -= 1 se.add(now) print(len(se))