http://oj.ecustacm.cn/problem.php?id=1259
#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int a[10]={0,1,2,3,4,5,6,7,8,9};
int main(void)
{
/*do
{
if(a[0]==0) continue;
if(a[4]==0) continue;
int sum1=a[0]*1000+a[1]*100+a[2]*10+a[3];
int sum2=a[4]*1000+a[5]*100+a[6]*10+a[1];
int sum3=a[4]*10000+a[5]*1000+a[2]*100+a[1]*10+a[7];
if(sum1+sum2==sum3)
{
cout<<a[4]<<" "<<a[5]<<" "<<a[6]<<" "<<a[1]<<endl;
}
}while(next_permutation(a,a+10));*/
cout<<"1085"<<endl;
return 0;
}