while data = gets
	data2 = data.to_i
	count = 0
	for i in 0 ...10 
		for j in 0 ...10 
			for k in 0 ...10 
				for l in 0 ...10 
					if (i+j+k+l) == data2 
						count += 1
					end
				end
			end
		end
	end
	p count
end