#P1492D. Genius's Gambit
Genius's Gambit
No submission language available for this problem.
Description
You are given three integers , , .
Find two binary integers and () such that
- both and consist of zeroes and ones;
- (also written in binary form) has exactly ones.
The only line contains three integers , , and (; ; ) — the number of zeroes, ones, and the number of ones in the result.
If it's possible to find two suitable integers, print "Yes" followed by and in base-2.
Otherwise print "No".
If there are multiple possible answers, print any of them.
Input
The only line contains three integers , , and (; ; ) — the number of zeroes, ones, and the number of ones in the result.
Output
If it's possible to find two suitable integers, print "Yes" followed by and in base-2.
Otherwise print "No".
If there are multiple possible answers, print any of them.
Samples
Note
In the first example, , , . Hence has ones in base-2.
In the second example, , , . This is precisely one 1.
In the third example, one may show, that it's impossible to find an answer.