import java.util.Scanner

object Main {
  def main(args : Array[String]) = {
    val scanner = new Scanner(System.in)
    val n = scanner.nextLine().toInt

    def count(curNum:Int, curCnt:Int):Int = {
      if(curCnt == 4) {
        if(curNum == n) {
          return 1
        }else{
          return 0
        }
      }

      var totalCount = 0
      (0 to 9).foreach{num =>
        totalCount += count(curNum + num, curCnt + 1)
      }

      totalCount
    }

    val result = count(0, 0)

    println(result)
  }
}