n = gets.chomp.to_i sho = n / 2 zyouyo = n % 2 if zyouyo == 0 puts "#{sho} #{sho}" elsif zyouyo == 1 puts "#{sho} #{n - sho}" end