#include #include #include using namespace std; ifstream in("Input.txt"); ofstream out("Output.txt"); int main() { int x,i; cin >> x; list get_numb; int size = get_numb.size(); while (in >> i) { get_numb.push_front(i); } while (!get_numb.empty()) { if (x != get_numb.front()) out << get_numb.front() << " "; get_numb.pop_front(); } in.close(); out.close(); return 0; }