#include <iostream>

#define NUM 4

using namespace std;

int main(){

	int A[NUM+1];
	int b;
	int i;

	for(i=0;i<=NUM;i++) {
		cout <<"?±±????????????" ;
		cin >> A[i];
		cout <<endl;
	}
	for(i=0;i<NUM;i++){
		if(A[i]>A[i+1]){
			b = A[i+1];
			A[i+1] =A[i];
			A[i] = b;

		}
	}
	

	for(i=0;i<NUM+1;i++) {
		printf("%d??????????±±????????????%d??§???",i+1,A[i]);
	}
	return 0;
}