num = []
i = 0

while true
  ln = gets
  if ln == nil
    break
  end
  num[i] = ln.chomp
  num[i] = num[i].to_i
  i = i + 1
end

for j in 0..(i - 1)
  cnt = 0
  for a in 0..9
    for b in 0..9
      for c in 0..9
        for d in 0..9
          if a + b + c + d == num[j]
            cnt = cnt + 1
            break
          end
        end
      end
    end
  end
  puts cnt
end
