s = input() md = len(s)//2 right,left=s[:md],s[md:] print('YES' if right == left else 'NO')