while true
	n = gets
	exit if n == nil
	count = 0
	n = n.to_i
	10.times do |a|
		10.times do |b|
			10.times do |c|
				10.times do |d|
					count += 1 if a + b + c + d == n
				end
			end
		end
	end
	puts count
end