s=input() l=len(s)//2 if len(s)%2==1: print("NO") exit() f1=s[:l] f2=s[l:] if f1==f2: print('YES') exit() else: print('NO')