s = input() le = len(s) if le % 2 != 0: print('NO') else: if s[: le] == s[le :]: print('YES') else: print('NO')