s = input() if len(s) % 2 !=0: print('NO') else: i = len(s) // 2 a = s[:i] b = s[i:] for j in range(i): if a[j] != b[j]: print('NO') break else: print('YES')