print<>=~/^(.*)\1$/?YES:NO