use proconio::input; fn main(){ input!{ s:String, } let c=s.len()/2; print!("{}",if s[0..c]==s[c..]{"YES"} else {"NO"}); }