#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 << " ";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4gKHZvaWQpewoKICAgICAgIGludCBlWzVdID0gezEwLDIwLDMwLDQwLDUwfTsgICAgICAgCgogICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPD0gOTk7IGkrKyl7CgkgICAgICAgIGludCAqcGVzcSA9IGZpbmQoYmVnaW4oZSksIGVuZChlKSwgaSk7CgkgICAgICAgIGlmIChwZXNxICE9IGVuZChlKSkgY291dCA8PCAqcGVzcSA8PCAiICI7CgkgICAKCSAgIH0KCn0=