m=(n=gets.to_i)/2 print m," ",(n-m)