#include <stdio.h>
f(n){return--n?f(n)*~-f(n)+1:2;}
int main(void) {
int n;
for (n
= 1; n
< 6; n
++) printf("%u\n", f
(n
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpmKG4pe3JldHVybi0tbj9mKG4pKn4tZihuKSsxOjI7fQoKaW50IG1haW4odm9pZCkgewoJaW50IG47Cglmb3IgKG4gPSAxOyBuIDwgNjsgbisrKSBwcmludGYoIiV1XG4iLCBmKG4pKTsKCXJldHVybiAwOwp9Cg==