s = input()

ans = set()
L = [('', s)]
while L:
    res, s = L.pop()
    if s == '':
        ans.add(res)
    else:
        L.append((res + s[0], s[1:]))
        L.append((res + s[-1], s[:-1]))
print(len(ans))