#include using namespace std; using G=vector>; typedef long long ll; #define rep(i,l,r) for(int i=(l);i<(r);++i) int main(){ vector v(4); rep(i,0,3){ int a; cin>>a; v[a]++; } rep(i,0,4){ if(v[i]==3){cout<