def daizinakoto(str): str_ren = len(str) // 2 return "YES" if str[:str_ren] == str[str_ren:] else "NO" print(daizinakoto(input()))