#!/usr/bin/env ruby
n = gets.split(' ')
n.each_with_index do |str, i|
  n[i] = str.to_i
end

if n[0] > n[1]
  n[0], n[1] = n[1], n[0]
end
if n[0] > n[2]
  n[0], n[2] = n[2], n[0]
end
if n[1] > n[2]
  n[1], n[2] = n[2], n[1]
end
printf("%d %d %d\n", n[0], n[1], n[2])

