#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int d;
	if(a>c){
		d=a;
		a=c;
		c=d;
	}
	if(a>b){
		d=b;
		b=a;
		a=d;
	}
	if(b>c){
		d=b;
		b=c;
		c=d;
	}
	cout << a << " " << b << " " << c <<endl;
}