while line = gets
  n = line.chomp.to_i

  answer = 0
  n.downto(0) do |i|
    (n - i).downto(0) do |j|
      (n - i - j).downto(0) do |k|
        (n - i - j - k).downto(0) do |l|
          answer += 1 if i + j + k + l == n
        end
      end
    end
  end

  puts answer
end