#include <iostream>
using namespace std;
int main(){
int a, b, c; cin >> a >> b >> c;
int maxv = max(a, max(b, c));
int minv = min(a, min(b, c));
cout << minv << endl;
cout << a + b + c - minv - maxv << endl;
cout << maxv << endl;
cout << endl;
cout << a << endl << b << endl << c << endl;
return 0;
}