#include<bits/stdc++.h>
#define ll long long
#define mod 998244353
using namespace std;

int n;
int calc(int x, int m){
    if (x >= (m << 1)) x -= m << 1;
    if (x >= n) x -= m;
    return x + 1;
}
int main(){
    scanf("%d", &n);
    int m;
    for (m = 1; (m << 1) <= n; m <<= 1);
    for (int i = 0; i < n; i++)
        printf("%d %d\n", calc(i << 1, m), calc(i << 1 | 1, m));
    return 0;
}
#include<cstdio>
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
//#define int long long
//const int N = ;

inline int read()
{
	int X=0;bool flag=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')flag=0;ch=getchar();}
	while(ch>='0'&&ch<='9'){X=(X<<1)+(X<<3)+ch-'0';ch=getchar();}
	if(flag)return X;
	return ~(X-1);
}

inline void write(int X)
{
	if(X<0){X=~(X-1);putchar('-');}
	if(X>9){write(X/10);}
	putchar(X%10+'0');
}

signed main()
{
	int n=read();
	int ans=n/100;
	if(n%100!=0)ans+=1;
	cout<<ans;
	return 0;
}


