x=str(input()) re = "NO" for i in range(len(x)): if x[:i+1]*2==x: re="YES" print(re)