You are on page 1of 1

#include <fstream>

using namespace std;


ifstream fin("nrlipsa.in");
ofstream fout("nrlipsa.out");
int main()
{
int fr[1000]={0},a,b=0,c=0
while(cin>>a){
if(a<=999 && a>99)
fr[a]++;
}

for(int i=999; i>=100; i--)


� � � � if (fr[i]==0)
if(b==0)
� � � � � �b=i;
� � � � � else
� � � � � {
� � � � � � � c=i;
� � � � � � � break;
� � � � � }
� �if (c==0||b==0)
� � � �fout<<"NU"<<'\n';
� �else
� � � �fout<<b<<" "<<c<<'\n';
�return 0;

You might also like