
A centipede has legs and head. Find the number of legs that a dragon with heads has, given that the total number of heads is and the total number of legs is .
Four numbers: , , , . All numbers do not exceed . It is guaranteed that there is at least one dragon and at least one centipede.
Output the number of legs a dragon has. If the given data is contradictory, output . If there are multiple solutions, output any one of them.
Example 1