#include <iostream>
using namespace std;
void helper(int n){
if(n == 0)return;
cout<<n<<"down "<<endl;
helper(n-1);
cout<<n<< "up "<<endl;
}
int main() {
int n;
cin>>n;
helper(n);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwp2b2lkIGhlbHBlcihpbnQgbil7CglpZihuID09IDApcmV0dXJuOwoJY291dDw8bjw8ImRvd24gICI8PGVuZGw7CgloZWxwZXIobi0xKTsKCWNvdXQ8PG48PCAidXAgICI8PGVuZGw7Cn0KaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbj4+bjsKCWhlbHBlcihuKTsKCXJldHVybiAwOwp9