s=input() if(s[:len(s)] == s[len(s):]): print('YES') else: print('NO')