Write a program that accepts two values (integer type). The first is the number of heads and second is the number of legs of all the creatures in a farm which consist of chickens and dogs. You should calculate and print the number of chickens and number of dogs in the farm. If it is impossible to determine the correct number of chickens and dogs in the farm with the given information then print “NONE”
Input: 5 12
Output: 4 1
For the input it means that someone has counted a total of 5 heads and total of 12 legs in the farm. Now you should calculate how many chickens and how many dogs are in the farm and output tells that here are 4 chickens and 1 dog.