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