n=gets.to_i p (1..n/2).map{|i|(n-i-i+1..n-i).reduce(:*)/(1..i).reduce(:*)}.sum(1)