™
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int x, y, z, ans = 0, sum = 0, tmp = 0;
cin >> x >> y >> z;
if (z + y > x) {
ans = x;
cout << ans << "\n";
} else {
ans = z + y;
cout << ans << "\n";
}
if (z + x > y) {
sum = y;
cout << sum << "\n";
} else {
sum = z + x;
cout << sum << "\n";
}
if (x + y > z) {
tmp = z;
cout << tmp;
} else {
ans = x + y;
cout << tmp;
}
return 0;
}