#include <iostream>
using namespace std;
void bubbleSort(int arr[], int n) {
bool swapped = true;
int j = 0;
int tmp;
while (swapped) {
swapped = false;
j++;
for (int i = 0; i < n - j; i++) {
if (arr[i] > arr[i + 1]) {
tmp = arr[i];
arr[i] = arr[i + 1];
arr[i + 1] = tmp;
swapped = true;
}
}
}
}
int main()
{int A,B,C;
cin>>A>>B>>C;
int arr[]={A,B,C};
bubbleSort(arr,3);
// afisare sortat
for(int i=0;i<3;i++){
cout<<arr[i]<<" ";
}
return 0;
}