Mapping/N/Injective not surjective/Exercise

Give examples of mappings

such that is injective but not surjective, and is surjective but not injective.