import std.stdio, std.array, std.conv, std.string, std.algorithm;

void main() {
  string[] input = split(readln());
  int[] a = new int[3];

  for (int i = 0; i < 3; ++i) {
    a[i] = to!int(input[i]);
  }

  sort(a);
  // sort!("a < b")(a);
  for (int i = 0; i < 3; ++i) {
    write(a[i]);
    write(i == 2 ? "\n" : " ");
  }
}