import java.util.*; public class _1562 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); if(N <= 10) { System.out.println(N/10); return; } long MOD = 1000000000; long[][][] dp = new long[N+1][10][1024]; for(int i=1; i<10; i++) dp[1][i][1<