#!/usr/local/bin/ruby
n = gets.to_i
count = 0
for i in 0..9 do
 for j in 0..9 do
  for k in 0..9 do
   for l in 0..9 do
    count += 1 if i+j+k+l == n
   end
   count +=1 if i+j+k+l == n
  end
  count +=1 if i+j+k+l == n
 end
 count +=1 if i+j+k+l == n
end 
puts count