t=input()if len(t)%2==1:print("NO")else: l = [] for i in t:l.append(i) if l[:len(t)//2]==l[-1:len(t)//2-1:-1]: print("YES") print(*l[:len(t)//2],sep="") else: print("NO")