Author: | Антон Карабанов | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 256 Mb | |
Output file: | Standard output |
Employees of the Research Institute of Advanced Technologies encountered a group of programmers in the forest. It turned out that exactly a percent of them are inexperienced, b percent are volunteers, and c percent are willing to live in a dormitory. Determine the minimum possible number of people in such a group and whether there is guaranteed to be at least one programmer with all three necessary qualities.
Three lines of input contain three natural numbers: a, b and c.
Output a single natural number in the first line. In the second line, output Yes
or No
— answers to the questions of the problem.
1 ≤ a, b, c ≤ 99
In the first example, the minimum possible number of people will be 20, for which all the specified percentages will be integers (4, 5, and 6). However, it's possible that different people possess the required qualities.
In the second example, the minimum possible number of people will be 4, and regardless of attempts to distribute the specified qualities among them, there will definitely be at least one person with all three.
No. | Standard input | Standard output |
---|---|---|
1 |
|
|
2 |
|
|