#include
using namespace std;
int numar(int n, int c1, int c2)
{int r=0, ca=1;
while(n)
{ if(n%10==c1)r=c2*ca+r;
else r=(n%10)*ca+r;
ca=ca*10;
n=n/10;
}
return r;
}
int main()
{int n, c1, c2;
cin>>n;
cin>>c1>>c2;
cout