def c(a,b)s=1;(1..b).each{|i|s=s*(a-i)/i};s;end x=gets.to_i puts x<1?'1 0':x<99?[c(32,x),c(31,x-1)*0x7fffffff]*' ':'0 0'