#include <iostream>

#include <fstream>


using namespace std;

int main() {
	int i,j, indice=-1, V;
	int t[10];
	cout<<"Tapez V"<<endl;
	cin>>V;
	cout<<"Tapez le premier entier"<<endl;
	cin>>t[0];
	if (t[0]==V) {indice=0;}
	for(i=1;i<10;++i) {
		cout<<"Tapez le "<<i+1<<"eme entier"<<endl;
		cin>>t[i];
		if (t[i]==V) {indice=i;}
		}
	if (indice!=-1) {
		for(j=indice;j<9;++j){
			t[j]=t[j+1];
			}
		t[9]=0;
		}
	for(i=0;i<10;++i) {
		cout<<t[i]<<endl;
		}	
	return 0;
}