#coding: utf-8
STDOUT.sync = true

sum = Array.new(51, 0)
10.times { |a|
  10.times { |b|
    10.times { |c|
	  10.times { |d|
	    sum[a + b + c + d] += 1
      }
	}
  }
}

while num = gets.to_i do
  puts sum[num]
end