#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<=3||n>20){ //輸入數字的限制
return 0;
}
vector<int>shin;
for(int i=n;i>=1;i--){
shin.push_back(i);
}
int a,b,c;
cin>>a>>b>>c;
shin.erase(remove(shin.begin(),shin.end(),a),shin.end());
shin.erase(remove(shin.begin(),shin.end(),b),shin.end()); //移除數字
shin.erase(remove(shin.begin(),shin.end(),c),shin.end());
sort(shin.begin(),shin.end(),greater<int>()); //降冪
for(int j=0;j<shin.size();j++){
cout<<"No. "<<shin[j]<<"\n";
}
return 0;
}