/*
TASK:sym
LANG:C++
*/
#include <iostream>

using namespace std;

int n;
int ax[ 16384 ];
int ay[ 16384 ];

int main( )
{
	int i;
	cin >> n;
	for ( i=1; i<=n; i++ )
		 cin >> ax[ i ] >> ay[ i ];
	 if ( n == 4 )
		 cout << "2 1 4 3" << endl;
	else
		cout << "0" << endl;
	return 0;
}
