n=gets.to_i p (1..n/2).map{|i|[*1..n-i].combination(i).count}.sum(1)