lab4(158)
#include <iostream>
using namespace std;
int main() {
int x, y, z;
cin>>x>>y>>z;
if(x+y+z< 1) {
if(x<y<z) {
x = (y+z)/2;
} else if(y<x<z){
y = (x+z)/2;
} else{
z = (x+y)/2;
}
} else if(x<y) {
x = (y+z)/2;
} else {
y = (x+z)/2;
}
cout<<x<<y<<z;
}INFO