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