class FindAnswer
def makeDatabase
	database = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
	10.times { |a|
		10.times { |b|
			10.times { |c|
			break if a+b+c > 17
				10.times { |d|
					break if  a+b+c+d > 18
					database[a+b+c+d] += 1
				}
			}
		}
	}
	database
end

def orORor(num)
	num > 18 ? num = 36 - num : num
end

end

aa = FindAnswer.new
table = aa.makeDatabase

while input = STDIN.gets.to_i
	if input >36
		puts 0
		else
		get = aa.orORor(input)
	puts table[get]
	end
end