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