import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = read().rstrip() n = len(S)//2 L = S[:n] R = S[n:] answer = 'YES' if L == R else 'NO' print(answer)