while gets
  count = 0
  n = $_.to_i
  (0..n).each do |i|
    (0..n).each do |j|
      (0..n).each do |k|
        (0..n).each do |l|
          count += 1 if n == i + j + k + l          
        end
      end
    end
  end
  puts count
end