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