s=input() print('YNEOS'[s[:len(s)//2]*2!=s::2])