def main
  while num = gets
    num = num.chomp.to_i
    puts solve(num).to_s
  end
end

def solve num
  res = 0
  (0..9).each do |a|
    (0..9).each do |b|
      (0..9).each do |c|
        (0..9).each do |d|
          res += 1 if a + b + c + d == num
        end
      end
    end
  end
  res
end


main