#include #include using namespace std; int v[4]; int main() { cin>>v[0]>>v[1]>>v[2]>>v[3]; sort(v,v+4); cout<