Pagini recente » Cod sursa (job #748679) | Cod sursa (job #2602618) | Cod sursa (job #640343) | Cod sursa (job #298511) | Cod sursa (job #2643194)
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;
typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
ifstream fin("lacate.in");
ofstream fout("lacate.out");
int n;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
fin>>n;
fout<<n-1<<" "<<1<<'\n';
for(int i=1;i<=n-1;i++)
fout<<i<<'\n';
fout<<1;
return 0;
}