結果

問題 No.825 賢いお買い物
ユーザー むらためむらため
提出日時 2019-05-20 04:25:27
言語 Nim
(2.0.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 33,961 bytes
コンパイル時間 2,375 ms
コンパイル使用メモリ 66,580 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-14 18:33:27
合計ジャッジ時間 3,415 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
4,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 2 ms
4,380 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #

import sequtils
template times*(n:int,body) = (for _ in 0..<n: body)
template `max=`*(x,y) = x = max(x,y)
template `min=`*(x,y) = x = min(x,y)
proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "<stdio.h>" ,discardable.}
proc scan(): int =
  while true:
    let k = getchar_unlocked()
    if k < '0': return
    result = 10 * result + k.ord - '0'.ord

proc solve(a,b,c:int):int =
  # A 10B -> A+B=C
  # 15 + 15*10
  for x in 1..a+b*10:
    for ia in 0..a:
      for ib in 0..b:
        # x円のものを ia+ib*10円で払う
        let g = ia + ib*10 - x
        if g < 0 : continue
        let res = (a-ia) + (b-ib) + (g mod 10) + (g div 10)
        if res != c : continue
        return x
  return 0

let a = scan()
let b = scan()
let c = scan()
# let ans = solve(a,b,c)
# echo (
#   proc():seq[seq[seq[int]]] =
#     result = newSeqWith(21,newSeqWith(21,newSeqWith(101)))
#     for a in 0..20:
#       for b in 0..20:
#         for c in 0..100:
#           result[a][b][c] = solve(a,b,c)
#   )()
const ABC = @[@[@[],@[10,9,8,7,6,5,4,3,2,1],@[20,10,9,8,7,6,5,4,3,2,1],@[30,20,10,9,8,7,6,5,4,3,2,1],@[40,30,20,10,9,8,7,6,5,4,3,2,1],@[50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],@[200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1]],@[@[1],@[11,1,9,8,7,6,5,4,3,2,1],@[21,11,1,9,8,7,6,5,4,3,2,1],@[31,21,11,1,9,8,7,6,5,4,3,2,1],@[41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[191,181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1],@[201,191,181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1]],@[@[2,1],@[12,2,1,9,8,7,6,5,4,3,2,1],@[22,12,2,1,9,8,7,6,5,4,3,2,1],@[32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[192,182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1],@[202,192,182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1]],@[@[3,2,1],@[13,3,2,1,9,8,7,6,5,4,3,2,1],@[23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[193,183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1],@[203,193,183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[4,3,2,1],@[14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[194,184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[204,194,184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[5,4,3,2,1],@[15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[195,185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[205,195,185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[6,5,4,3,2,1],@[16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[196,186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[206,196,186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[7,6,5,4,3,2,1],@[17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[197,187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[207,197,187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[8,7,6,5,4,3,2,1],@[18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[198,188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[208,198,188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[9,8,7,6,5,4,3,2,1],@[19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[199,189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[209,199,189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[10,9,8,7,6,5,4,3,2,1],@[20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[210,200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[11,1,9,8,7,6,5,4,3,2,1],@[21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[191,181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[201,191,181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[211,201,191,181,171,161,151,141,131,121,111,101,91,81,71,61,51,41,31,21,11,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[12,2,1,9,8,7,6,5,4,3,2,1],@[22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[192,182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[202,192,182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[212,202,192,182,172,162,152,142,132,122,112,102,92,82,72,62,52,42,32,22,12,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[13,3,2,1,9,8,7,6,5,4,3,2,1],@[23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[193,183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[203,193,183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[213,203,193,183,173,163,153,143,133,123,113,103,93,83,73,63,53,43,33,23,13,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[14,4,3,2,1,9,8,7,6,5,4,3,2,1],@[24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[194,184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[204,194,184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[214,204,194,184,174,164,154,144,134,124,114,104,94,84,74,64,54,44,34,24,14,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[15,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[195,185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[205,195,185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[215,205,195,185,175,165,155,145,135,125,115,105,95,85,75,65,55,45,35,25,15,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[196,186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[206,196,186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[216,206,196,186,176,166,156,146,136,126,116,106,96,86,76,66,56,46,36,26,16,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[197,187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[207,197,187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[217,207,197,187,177,167,157,147,137,127,117,107,97,87,77,67,57,47,37,27,17,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[198,188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[208,198,188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[218,208,198,188,178,168,158,148,138,128,118,108,98,88,78,68,58,48,38,28,18,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[199,189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[209,199,189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[219,209,199,189,179,169,159,149,139,129,119,109,99,89,79,69,59,49,39,29,19,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]],@[@[20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[210,200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1],@[220,210,200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1]]]
if a >= ABC.len or b >= ABC[a].len or c >= ABC[a][b].len : quit "Impossible",0
let ans = ABC[a][b][c]
if ans <= 0 : echo "Impossible"
else: echo ans
0