N = input() result = "Yes" if len(N)%2 == 1: result = "No" else: for i in range(int(len(N)/2)): if N[i] != N[int(len(N)/2) + i]: result = "No" print(result)