fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s = s.trim(); if s[..s.len() / 2] == s[s.len() / 2..] { println!("YES"); } else { println!("NO"); } }