#include <bits/stdc++.h> 
using namespace std; 

int main(){
    long long int X; 
    cin >> X; 
    int a; 
    a = X%100; 
    int ans; 
    ans = 100 - a; 
    cout << ans << endl; 
}
//Author:RingweEH
#include <cstdio>
#include <algorithm>
#include <cstring>
#define ll long long
#define db double
using namespace std;
int min( int a,int b ) { return (a<b) ? a : b; }
int max( int a,int b ) { return (a>b) ? a : b; }
void bmin( int &a,int b ) { a=(a<b) ? a : b; }
void bmax( int &a,int b ) { a=(a>b) ? a : b; }
int read()
{
	int x=0,w=1; char ch=getchar();
	while ( ch>'9' || ch<'0' ) { if ( ch=='-' ) w=-1; ch=getchar(); }
	while ( ch<='9' && ch>='0' ) { x=x*10+ch-'0'; ch=getchar(); }
	return x*w;
}

int n;

int main()
{
	n=read();
	for ( int i=1; i<=n; i++ )
		printf( "%d %d\n",(i*2)%n+1,(i*2+1)%n+1 );

	return 0;
}