import times, strutils, sequtils, math, algorithm, tables, sets, lists, intsets import critbits, future, strformat, deques template `max=`(x,y) = x = max(x,y) template `min=`(x,y) = x = min(x,y) template `mod=`(x,y) = x = x mod y template scan2 = (scan(), scan()) template scan3 = (scan(), scan()) let read* = iterator: string {.closure.} = while true: (for s in stdin.readLine.split: yield s) proc scan(): int = read().parseInt proc scanf(): float = read().parseFloat proc toInt(c:char): int = return int(c) - int('0') proc solve()= var v = read() n = v.len() dp = newseqwith(n,newseqwith(2,0)) md = 10^9+7 for val in 1..9: if val < v[0].toInt: dp[0][1]+=val if val == v[0].toInt: dp[0][0]+=val for idx in 1..