s = input() if s[0:int(len(s)/2)] == s[int(len(s)/2):int(len(s))]: res = 1 else: res = 0 if res == 1: print('YES') else: print('NO')