#include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n >> a >> b;
string s;
if (a + b == 0) cout << 0 << endl;
else
{
if ((a == b) or !(a * b)) cout << 1;
else cout << 2;
for (int i = 0; i < n - 1; i++) s += '0';
cout << s << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbiwgYSwgYjsKICAgIGNpbiA+PiBuID4+IGEgPj4gYjsKICAgIHN0cmluZyBzOwogICAgaWYgKGEgKyBiID09IDApIGNvdXQgPDwgMCA8PCBlbmRsOwogICAgZWxzZQogICAgewogICAgICAgIGlmICgoYSA9PSBiKSBvciAhKGEgKiBiKSkgY291dCA8PCAxOwogICAgICAgIGVsc2UgY291dCA8PCAyOwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbiAtIDE7IGkrKykgcyArPSAnMCc7CiAgICAgICAgY291dCA8PCBzIDw8IGVuZGw7CiAgICB9CiAgICByZXR1cm4gMDsKfQ==