S = input() a = False for i in range(len(S)): if S[0:i] == S[i:len(S)]: a = True if a: print('YES') else: print('NO')