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

const long long INF = 1LL << 60;
#define MOD 1000000007;

typedef long long ll;

#define writeln(n) cout<<n<<endl;

typedef pair<float, float> P;

typedef pair<string, int> Psi;


int main() {



	int n;
	cin>>n;


	for(int i=1; i<=n; i++){
		if(n-i <=10){
			cout<<i<<" "<<n-i<<endl;
		}
	}


}