while n=gets.to_i
ans=0
for a in [0,1,2,3,4,5,6,7,8,9]
for b in [0,1,2,3,4,5,6,7,8,9]
for c in [0,1,2,3,4,5,6,7,8,9]
for d in [0,1,2,3,4,5,6,7,8,9]
if a+b+c+d==n
ans=ans+1
end
end
end
end
end
puts ans
end