s = input() l = len(s) if s == s[:l//2] * 2: print('YES') else: print('NO')