n = gets.to_i
count = 0
for a in 0..9 
	for b in 0..9 
		for c in 0..9 
			for d in 0..9
				sum = a + b + c +d
				# print(sum)
				if  sum == n
					count = count + 1
				end
			end
		end
	end
end
print(count)	