def judge(s): if len(s) % 2 == 1: return 'NO' for i in range(0, len(s)/2): if s[i] != s[i+len(s)/2]: return 'NO' return 'YES' print judge(raw_input())