s = input() t = s[:len(s)//2] if t*2 == s: print('YES') else: print('NO')