#include<cstdio> #include<iostream> using namespace std; int main() { int n; int x,y,z; cin>>n; cin>>x>>y>>z; int a,b; int per; int resulta; int resultb; int max=0; for(a=1;a<=9;a++) { for(b=0;b<=9;b++) { int total=a*10000+x*1000+y*100+z*...