import sys s = input() l = len(s) for i in range(1,l): a = s[0:i] b = s[i:] if a == b: print('YES') sys.exit() print('NO')