In a ranch, there are horses and cowboys, since every creature in the ranch are normal, a horse would have 4 legs and 1 tail, a cowboy would have 2 legs and no tail.
Now, given the total number of legs and tails in the ranch, try to calculate how many horses and cowboys are in the ranch.
The number of legs n and the number of tails m.
2 ≤ n,m ≤ 1000
Output 2 intergers in one line, the first being the number of cowboys, the other being the number of horses.