#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
for(int i=n; i>=1; i-- )
cout<<i-2<<" ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbj4+bjsKCWZvcihpbnQgaT1uOyBpPj0xOyBpLS0gKQoJY291dDw8aS0yPDwiICI7IAoJcmV0dXJuIDA7Cn0=