S = input() A = S[:(int(len(S)//2))] B = S[(int(len(S)//2)):] if A == B: print('YES') else: print('NO')