#include <iostream>
using namespace std;
int main () {
int e[5] = {10, 20, 30, 40, 50};
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 5; j++) {
if (e[j] == i) {
cout << i;
break;
}
}
}
}
//https://pt.stackoverflow.com/q/336968/101
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4gKCkgewogICAgaW50IGVbNV0gPSB7MTAsIDIwLCAzMCwgNDAsIDUwfTsgICAgICAgCiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwMDsgaSsrKSB7CiAgIAkgICAgZm9yIChpbnQgaiA9IDA7IGogPCA1OyBqKyspIHsKICAgCSAgICAJaWYgKGVbal0gPT0gaSkgewogICAJICAgIAkJY291dCA8PCBpOwogICAJICAgIAkJYnJlYWs7CiAgIAkgICAgCX0KICAgCSAgICB9CiAgICB9Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzMzNjk2OC8xMDE=