s1 = input() if len(s1) % 2 != 0: print('NO') else: if s1[int(len(s1)/2):] == s1[:int(len(s1)/2)]: print('YES') else: print('NO')