#include using namespace std; int main() { set st; for (int i = 0; i < 3; i++) { int a; cin >> a; if (st.count(a)) { st.erase(a); } else { st.insert(a); } } if (st.size() == 1) { cout << *st.begin() << endl; } if (st.size() == 3) { for (int i = 0; i < 4; i++) { if (!st.count(i)) { cout << i << endl; } } } }