class FindAnswer
	def kakeru(suuchi)
	return 0 if suuchi > 36
	num = suuchi
	suuchi = 36 - suuchi if suuchi >18
	out = 0
	10.times { |a|
		10.times { |b|
			10.times { |c|
				10.times { |d|
					if a+b+c+d >num
						break
						elsif
						a+b+c+d == num
						out += 1
					end
				}
			}
		}
	}
	return out
	end
end

while innum = gets.to_i
	kotae = FindAnswer.new
	puts kotae.kakeru(innum)
end