#include <iostream>
#include <algorithm>
using namespace std;

int main (void){

       int e[5] = {10,20,30,40,50};       

       for (int i = 0; i <= 99; i++){
	        int *pesq = find(begin(e), end(e), i);
	        if (pesq != end(e)) cout << *pesq << " ";
	   
	   }

}