//280
#include <iostream>
using namespace std;
long double fact(int f){
if(f < 0)
return 0;
if (f == 0)
return 1;
else
return f * fact(f - 1);
}
int main()
{
long double x[31];
long double y[31];
x[1]=1;
x[2]=2;
y[1]=1;
y[2]=2;
for(int i=3; i<=25;i++){
x[i] = (y[i-1] - y[i-2])/i;
y[i]=((x[i-1]*x[i-1])+x[i-2]+y[i-1])/fact(i);
}
for(int i=1;i<=25;i++){
cout<<"x"<<i<<" = ";
cout<<x[i]<<endl;
}
for(int i=1;i<=25;i++){
cout<<"y"<<i<<" = ";
cout<<y[i]<<endl;
}
return 0;
}
Ly8yODAKI2luY2x1ZGUgPGlvc3RyZWFtPiAgIAp1c2luZyBuYW1lc3BhY2Ugc3RkOyAKbG9uZyBkb3VibGUgZmFjdChpbnQgZil7CiAgICBpZihmIDwgMCkgCiAgICAgICAgcmV0dXJuIDA7IAogICAgaWYgKGYgPT0gMCkgCiAgICAgICAgcmV0dXJuIDE7CiAgICBlbHNlIAogICAgICAgIHJldHVybiBmICogZmFjdChmIC0gMSk7IAp9CmludCBtYWluKCkKewogICAgbG9uZyBkb3VibGUgeFszMV07CiAgICBsb25nIGRvdWJsZSB5WzMxXTsKCXhbMV09MTsKCXhbMl09MjsKCXlbMV09MTsKCXlbMl09MjsKCWZvcihpbnQgaT0zOyBpPD0yNTtpKyspewoJCXhbaV0gPSAoeVtpLTFdIC0geVtpLTJdKS9pOwoJCXlbaV09KCh4W2ktMV0qeFtpLTFdKSt4W2ktMl0reVtpLTFdKS9mYWN0KGkpOwoJCQoJfQoJZm9yKGludCBpPTE7aTw9MjU7aSsrKXsKCQljb3V0PDwieCI8PGk8PCIgPSAiOwoJCWNvdXQ8PHhbaV08PGVuZGw7CgkKCX0KCWZvcihpbnQgaT0xO2k8PTI1O2krKyl7CgkJY291dDw8InkiPDxpPDwiID0gIjsKCQljb3V0PDx5W2ldPDxlbmRsOwoJCgl9CiAgICAgIAogICAKICAgIHJldHVybiAwOyAKfQ==