from pprint import pprint def main(): s=input() if s[:len(s)//2]==s[len(s)//2:]: print("YES") else: print("NO") if __name__ == "__main__": main()