There are people and gifts, both numbered from to . Gift belongs to person .
You must distribute all the gifts so that each person receives exactly one gift and each gift is given to exactly one person.
Determine whether it is possible to distribute the gifts so that exactly people receive their own gifts.
The input consists of two integers and :
People and can receive gifts and . Then people , , and can receive gifts , , and , respectively. Exactly two people receive their own gifts.