s=gets.chomp
t=s[0...s.size/2]
puts s==t+t ?:YES: :NO