//icpc2012rC #include #include using namespace std; typedef valarrayV; int n=2,m=100000000; //lol V z; V &Me(const V &_x,const V &_y){ int i=0,j; for(;i>=1){ if(r&1)e=Me(e,x); x=Mx(x); } printf("%d\n",(int)(e[0]+e[2]*1.7320508075688772)%1000); } }