s = input() s_len = len(s) result_set = set() for i in range(s_len + 1): tmp = "" left = 0 right = s_len - 1 for j in range(s_len): if i & (2 ** j): tmp += s[right] right -= 1 else: tmp += s[left] left += 1 result_set.add(tmp) print(len(result_set))