def mainProc( val ): if len(val) % 2 != 0 : print('NO') elif val[:len(val) // 2] != val[len(val) // 2:] : print('NO') else : print('YES') if __name__ == '__main__': value = input() mainProc(value)