while n = gets
   n = n.to_i
   ans = 0
   (0..9).each do |a|
	  (0..9).each do |b|
		 (0..9).each do |c|
			d = n - a - b - c
			if (d > -1) && (d < 10)
			   ans += 1
			   #puts a.to_s + " " + b.to_s + " " + c.to_s + " " + d.to_s
			end
		 end
	  end
   end
   puts ans
end