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