fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. unsigned int h, a, b;
  7.  
  8. cin >> h >> a >> b;
  9.  
  10. cout << max(a, b) << " " << min(a, b);
  11. return 0;
  12. }
Success #stdin #stdout 0s 5312KB
stdin
10 3 2
stdout
3 2