#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main() {
	
	ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    int a,b,c;
    cin  >> a>> b >> c;
    
    vector<int> ted={a,b,c} ;
	
	sort(ted.begin(), ted.end()) ;
	
	
  if(ted[0] != 0){
  	cout << ted[1] <<" "<<  ted[0]<<" " << ted[2];
  }else if(ted[1] != 0){
		cout << ted[1] <<" "<<  ted[0]<<" " << ted[2];
  }else {
  	cout <<  ted[2] <<" "<<  ted[0]<<" " << ted[1]; 
  }
	
	
	
	return 0;
}