s = str(input()) if len(s)%2 == 1: print('NO') exit() if s[0:len(s)//2] == s[len(s)//2:]: print('YES') else: print('NO')