s = input() t = len(s) // 2 print(['NO', 'YES'][s[:t] == s[t:]])