S = input() NS = len(S) SG = set() for x in range((1<<(NS-1))): begin = 0 end = NS - 1 tmp = [] for i in range(NS): if x & 1: tmp.append(S[begin]) begin += 1 else: tmp.append(S[end]) end -= 1 x >>= 1 SG.add("".join(tmp)) print(len(SG))