import math._ object Main { def calc(n: Int): Long = { val dp = Array.fill(9, 6 * n + 1)(0L) dp(0)(0) = 1 for (i <- 1 to 8) { for (j <- 0 to 6 * n) { for (k <- 0 to n) { if (j + k <= 6 * n) { dp(i)(j + k) += dp(i-1)(j) } } } } dp(8)(6 * n) } def main(args: Array[String]) { val sc = new java.util.Scanner(System.in) val n = sc.nextInt println(calc(n)) } }