At one end, you will have a carboxyl group, and on the other, you will have an amine group. However, try and see the groups the are not at the ends. Remember, it is a polymer so unless the amine and carboxyl groups get removed in the synthesis process, they will still remain in some form.