Alan passed through the forest of horns. There are only two kinds of beasts, unicorns and
twinhorns, in this forest. Every unicorn has one horn on its head, and every twinhorn has two
horns on its head. Alan saw n horns and m beasts in total. Please write a program to compute
the number of unicorns and the number of twinhorns seen by Alan.