結果

問題 No.3 ビットすごろく
ユーザー Hir35Hir35
提出日時 2019-05-29 22:36:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 50,813 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 21,636 KB
実行使用メモリ 19,900 KB
最終ジャッジ日時 2024-09-17 16:01:41
合計ジャッジ時間 3,033 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
19,892 KB
testcase_01 AC 55 ms
19,892 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 54 ms
19,896 KB
testcase_05 WA -
testcase_06 AC 56 ms
19,900 KB
testcase_07 AC 54 ms
19,896 KB
testcase_08 AC 55 ms
19,772 KB
testcase_09 AC 56 ms
19,892 KB
testcase_10 WA -
testcase_11 AC 55 ms
19,896 KB
testcase_12 AC 55 ms
19,896 KB
testcase_13 WA -
testcase_14 AC 55 ms
19,772 KB
testcase_15 AC 55 ms
19,900 KB
testcase_16 AC 54 ms
19,768 KB
testcase_17 AC 54 ms
19,772 KB
testcase_18 AC 56 ms
19,896 KB
testcase_19 AC 55 ms
19,900 KB
testcase_20 AC 56 ms
19,892 KB
testcase_21 AC 55 ms
19,896 KB
testcase_22 WA -
testcase_23 AC 55 ms
19,776 KB
testcase_24 AC 55 ms
19,764 KB
testcase_25 AC 55 ms
19,772 KB
testcase_26 WA -
testcase_27 AC 55 ms
19,772 KB
testcase_28 WA -
testcase_29 AC 55 ms
19,772 KB
testcase_30 AC 55 ms
19,764 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
print([-1, 0, 2, 3, 6, 4, -1, 5, 7, 8, 6, 9, 7, -1, 8, 10, 11, 9, -1, 10, -1, -1, 11, 16, -1, 12, 15, 17, 13, 16, -1, 14, 17, 17, 16, 17, 15, -1, 16, 21, -1, 17, 20, 22, 18, 21, 22, 19, -1, 21, 22, -1, 20, 23, 25, 21, 23, 24, 26, 24, 22, 25, 27, 24, 23, 24, 26, 25, 27, 25, 26, 28, 26, 27, 27, 29, 28, 28, 30, 29, -1, 29, 31, -1, 30, 32, 35, 31, 33, 33, 36, 34, 32, 34, 34, 35, 33, 36, 34, 35, 37, 35, 40, 36, 38, 36, 41, 39, 37, 37, 39, -1, 38, 40, 38, 39, 41, 41, 39, 42, 40, -1, 42, 40, 41, 43, -1, 42, 43, 41, -1, 42, -1, -1, 43, 48, -1, 44, 47, 49, 45, 48, 49, 46, -1, 48, 49, -1, 47, 50, 52, 48, 50, 51, 53, 51, 49, 52, 51, 52, 50, 53, 51, 52, 54, 52, 57, 53, 55, 53, 58, 56, 54, 54, 56, -1, 55, 57, 55, 56, 58, 58, 56, 59, 57, -1, 59, 57, 58, 60, 59, 60, -1, 58, 61, 61, 59, 62, 61, 60, 62, 63, 62, 63, 61, 63, 63, -1, 62, 66, 64, 63, 65, 67, 65, 66, 64, -1, 68, 66, 65, 67, 69, 69, 68, 66, -1, 68, 70, 67, 70, 71, 69, -1, 68, 71, 70, 72, -1, 69, 71, 71, -1, 73, 72, -1, 70, 75, -1, 73, -1, -1, 71, -1, 76, 74, 73, 74, 72, 75, 73, 77, 74, 75, 78, 75, 78, 76, 76, 79, 80, 77, -1, 79, 80, -1, 78, 81, 83, 79, 81, 82, 84, 82, 80, 83, 82, 83, 81, 84, 82, 83, 85, 83, 88, 84, 86, 84, 89, 87, 85, 85, 87, -1, 86, 88, 86, 87, 89, 89, 87, 90, 88, -1, 90, 88, 89, 91, 90, 91, -1, 89, 92, 92, 90, 93, 92, 91, 93, 94, 93, 94, 92, 94, 94, -1, 93, 97, 95, 94, 96, 98, 96, 97, 95, -1, 99, 97, 96, 98, 100, 100, 99, 97, -1, 99, 101, 98, 101, 102, 100, -1, 99, 102, 101, 103, -1, 100, 102, 102, -1, 104, 103, -1, 101, 105, -1, 104, -1, -1, 102, -1, 106, 104, -1, 105, 103, -1, 106, 104, 109, 105, 107, 105, 110, 108, 106, 106, 108, -1, 107, 109, 107, 108, 110, 110, 108, 111, 109, -1, 111, 109, 110, 111, 113, 112, 112, 110, -1, 112, 114, 111, 113, 115, 113, -1, 112, 114, 114, 116, -1, 113, 115, 115, -1, 117, 116, -1, 114, 118, -1, 117, -1, -1, 115, 119, 117, 118, 119, 118, 116, 120, 120, 118, 117, 119, 121, -1, 119, 118, 120, 120, -1, 120, 121, 119, -1, 121, 122, -1, 120, 124, -1, 122, -1, -1, 121, 123, 125, 123, 124, -1, 122, 126, 124, 126, 130, 123, -1, 125, -1, 127, 129, -1, 124, 126, -1, -1, 128, -1, -1, 125, 129, 127, 129, -1, -1, -1, 126, 130, 130, 128, 128, 129, 132, 127, 133, 131, 128, 131, 129, 129, 130, 132, 130, 131, 133, 131, -1, 132, 134, -1, 132, 135, 137, 133, 135, 136, 138, 136, 134, 137, 136, 137, 135, 138, 136, 137, 139, 137, 142, 138, 140, 138, 143, 141, 139, 139, 141, -1, 140, 142, 140, 141, 143, 143, 141, 144, 142, -1, 144, 142, 143, 145, 144, 145, -1, 143, 146, 146, 144, 147, 146, 145, 147, 148, 147, 148, 146, 148, 148, -1, 147, 151, 149, 148, 150, 152, 150, 151, 149, -1, 153, 151, 150, 152, 154, 154, 153, 151, -1, 153, 155, 152, 155, 156, 154, -1, 153, 156, 155, 157, -1, 154, 156, 156, -1, 158, 157, -1, 155, 159, -1, 158, -1, -1, 156, -1, 160, 158, -1, 159, 157, -1, 160, 158, 163, 159, 161, 159, 164, 162, 160, 160, 162, -1, 161, 163, 161, 162, 164, 164, 162, 165, 163, -1, 165, 163, 164, 165, 167, 166, 166, 164, -1, 166, 168, 165, 167, 169, 167, -1, 166, 168, 168, 170, -1, 167, 169, 169, -1, 171, 170, -1, 168, 172, -1, 171, -1, -1, 169, 173, 171, 172, 173, 172, 170, 174, 174, 172, 171, 173, 175, -1, 173, 172, 174, 174, -1, 174, 175, 173, -1, 175, 176, -1, 174, 178, -1, 176, -1, -1, 175, 177, 179, 177, 178, -1, 176, 180, 178, 180, 184, 177, -1, 179, -1, 181, 183, -1, 178, 180, -1, -1, 182, -1, -1, 179, 183, 181, 183, -1, -1, -1, 180, 184, 184, 182, -1, 185, 183, 181, 186, 184, 185, 182, 183, 185, 186, 184, 183, 185, 186, -1, 184, 188, 186, 185, 187, 189, 187, 188, 186, -1, 190, 188, 187, 189, 191, 191, 190, 188, -1, 190, 192, 189, 192, 193, 191, -1, 190, 193, 192, 194, -1, 191, 193, 193, -1, 195, 194, -1, 192, 196, -1, 195, -1, -1, 193, 197, 195, 196, 197, 196, 194, 198, 198, 196, 195, 197, 199, -1, 197, 196, 198, 198, -1, 198, 199, 197, -1, 199, 200, -1, 198, 202, -1, 200, -1, -1, 199, 201, 203, 201, 202, -1, 200, 204, 202, 204, 208, 201, -1, 203, -1, 205, 207, -1, 202, 204, -1, -1, 206, -1, -1, 203, 207, 205, 207, -1, -1, -1, 204, 208, 206, 206, 208, 208, -1, 205, 207, 209, 207, 208, 206, -1, 210, 208, 207, 209, -1, 211, 210, 208, -1, 210, 211, -1, 209, 213, -1, 211, -1, -1, 210, 212, 214, 212, 213, -1, 211, 215, 213, 215, 219, 212, -1, 214, -1, 216, 218, -1, 213, 215, -1, -1, 217, -1, -1, 214, 218, 216, 218, -1, -1, -1, 215, 217, 219, 217, 220, -1, -1, 216, 220, 218, 220, 219, 218, 217, -1, 219, 221, 219, 220, 218, -1, -1, 220, 222, 220, 221, 221, 219, 221, -1, 221, 223, 222, 222, 222, 220, -1, 222, 222, 223, -1, 223, 223, 223, 221, -1, 224, 226, 224, 224, 222, 224, -1, 225, 227, 225, 227, 225, 223, -1, 225, 228, -1, 226, -1, 226, 224, 226, 227, 228, 228, 226, 227, -1, 227, 225, -1, 227, 228, 226, 228, 229, 230, 227, -1, 229, 230, -1, 228, 231, 233, 229, 231, 232, 234, 232, 230, 233, 232, 233, 231, 234, 232, 233, 235, 233, 238, 234, 236, 234, 239, 237, 235, 235, 237, -1, 236, 238, 236, 237, 239, 239, 237, 240, 238, -1, 240, 238, 239, 241, 240, 241, -1, 239, 242, 242, 240, 243, 242, 241, 243, 244, 243, 244, 242, 244, 244, -1, 243, 247, 245, 244, 246, 248, 246, 247, 245, -1, 249, 247, 246, 248, 250, 250, 249, 247, -1, 249, 251, 248, 251, 252, 250, -1, 249, 252, 251, 253, -1, 250, 252, 252, -1, 254, 253, -1, 251, 255, -1, 254, -1, -1, 252, -1, 256, 254, -1, 255, 253, -1, 256, 254, 259, 255, 257, 255, 260, 258, 256, 256, 258, -1, 257, 259, 257, 258, 260, 260, 258, 261, 259, -1, 261, 259, 260, 261, 263, 262, 262, 260, -1, 262, 264, 261, 263, 265, 263, -1, 262, 264, 264, 266, -1, 263, 265, 265, -1, 267, 266, -1, 264, 268, -1, 267, -1, -1, 265, 269, 267, 268, 269, 268, 266, 270, 270, 268, 267, 269, 271, -1, 269, 268, 270, 270, -1, 270, 271, 269, -1, 271, 272, -1, 270, 274, -1, 272, -1, -1, 271, 273, 275, 273, 274, -1, 272, 276, 274, 276, 280, 273, -1, 275, -1, 277, 279, -1, 274, 276, -1, -1, 278, -1, -1, 275, 279, 277, 279, -1, -1, -1, 276, 280, 280, 278, -1, 281, 279, 277, 282, 280, 281, 278, 279, 281, 282, 280, 279, 281, 282, -1, 280, 284, 282, 281, 283, 285, 283, 284, 282, -1, 286, 284, 283, 285, 287, 287, 286, 284, -1, 286, 288, 285, 288, 289, 287, -1, 286, 289, 288, 290, -1, 287, 289, 289, -1, 291, 290, -1, 288, 292, -1, 291, -1, -1, 289, 293, 291, 292, 293, 292, 290, 294, 294, 292, 291, 293, 295, -1, 293, 292, 294, 294, -1, 294, 295, 293, -1, 295, 296, -1, 294, 298, -1, 296, -1, -1, 295, 297, 299, 297, 298, -1, 296, 300, 298, 300, 304, 297, -1, 299, -1, 301, 303, -1, 298, 300, -1, -1, 302, -1, -1, 299, 303, 301, 303, -1, -1, -1, 300, 304, 302, 302, 304, 304, -1, 301, 303, 305, 303, 304, 302, -1, 306, 304, 303, 305, -1, 307, 306, 304, -1, 306, 307, -1, 305, 309, -1, 307, -1, -1, 306, 308, 310, 308, 309, -1, 307, 311, 309, 311, 315, 308, -1, 310, -1, 312, 314, -1, 309, 311, -1, -1, 313, -1, -1, 310, 314, 312, 314, -1, -1, -1, 311, 313, 315, 313, 316, -1, -1, 312, 316, 314, 316, 315, 314, 313, -1, 315, 317, 315, 316, 314, -1, -1, 316, 318, 316, 317, 317, 315, 317, -1, 317, 319, 318, 318, 318, 316, -1, 318, 318, 319, -1, 319, 319, 319, 317, -1, 320, 322, 320, 320, 318, 320, -1, 321, 323, 321, 323, 321, 319, -1, 321, 324, -1, 322, -1, 322, 320, 322, -1, 324, 322, -1, 323, 323, 323, 321, 323, 323, 324, 324, 322, 324, 325, -1, 323, 327, 325, 324, 326, 328, 326, 327, 325, -1, 329, 327, 326, 328, 330, 330, 329, 327, -1, 329, 331, 328, 331, 332, 330, -1, 329, 332, 331, 333, -1, 330, 332, 332, -1, 334, 333, -1, 331, 335, -1, 334, -1, -1, 332, 336, 334, 335, 336, 335, 333, 337, 337, 335, 334, 336, 338, -1, 336, 335, 337, 337, -1, 337, 338, 336, -1, 338, 339, -1, 337, 341, -1, 339, -1, -1, 338, 340, 342, 340, 341, -1, 339, 343, 341, 343, 347, 340, -1, 342, -1, 344, 346, -1, 341, 343, -1, -1, 345, -1, -1, 342, 346, 344, 346, -1, -1, -1, 343, 347, 345, 345, 347, 347, -1, 344, 346, 348, 346, 347, 345, -1, 349, 347, 346, 348, -1, 350, 349, 347, -1, 349, 350, -1, 348, 352, -1, 350, -1, -1, 349, 351, 353, 351, 352, -1, 350, 354, 352, 354, 358, 351, -1, 353, -1, 355, 357, -1, 352, 354, -1, -1, 356, -1, -1, 353, 357, 355, 357, -1, -1, -1, 354, 356, 358, 356, 359, -1, -1, 355, 359, 357, 359, 358, 357, 356, -1, 358, 360, 358, 359, 357, -1, -1, 359, 361, 359, 360, 360, 358, 360, -1, 360, 362, 361, 361, 361, 359, -1, 361, 361, 362, -1, 362, 362, 362, 360, -1, 363, 365, 363, 363, 361, 363, -1, 364, 366, 364, 366, 364, 362, -1, 364, 367, -1, 365, -1, 365, 363, 365, 367, 365, -1, 368, 366, 366, 366, 364, 367, 366, 367, 367, 368, 365, 367, 368, 370, 368, -1, 366, 368, -1, 369, 369, -1, 367, -1, -1, 370, 372, 370, 368, 370, -1, 371, 373, 371, 371, 375, 369, -1, 372, -1, 372, 374, -1, 370, 373, -1, -1, 373, -1, -1, 371, 376, 374, 374, -1, -1, -1, 372, 374, 375, 375, 377, -1, -1, 373, 377, 375, 376, 376, 376, 374, -1, 376, 377, 377, 377, 375, -1, -1, 377, 380, 378, 378, 378, 376, 378, -1, 379, 381, 379, 379, 379, 377, -1, 380, 379, 380, -1, 380, 380, 381, 378, -1, 381, 383, 381, 381, 379, 382, -1, 382, 384, 382, 384, 382, 380, -1, 383, 385, -1, 383, 384, 383, 381, 384, 383, 386, -1, 386, 384, -1, 384, 382, -1, 385, -1, -1, 385, -1, 383, 386, -1, -1, 386, -1, -1, 384, 389, 387, 387, -1, -1, -1, 385, 390, 388, 388, -1, -1, 390, 386, -1, 391, 389, -1, 389, -1, 387, 394, 392, 390, 390, -1, -1, 388, 395, 393, 393, 391, 391, -1, 389, 396, -1, 394, 393, 392, 392, 390, -1, 397, 392, 394, 394, 395, 393, 393, 393, 391, 393, 398, 396, 394, 394, 394, 392, 394, 399, 397, 397, 395, 393, -1, 395, 400, 399, 398, -1, 396, 394, 396, -1, 398, 400, -1, 399, 399, 397, 395, 399, 397, 403, 400, 401, 398, 398, 400, 396, 398, 404, 402, 400, -1, 399, 397, -1, 399, 405, -1, 401, -1, -1, 399, 400, 398, 400, 399, 401, 402, 400, 401, 403, 401, 400, 402, 402, 401, 403, 403, -1, 402, 404, -1, 403, 405, 408, 404, 406, 406, 409, 407, 405, 407, 407, 408, 406, 409, 407, 408, 410, 408, 413, 409, 411, 409, 414, 412, 410, 410, 412, -1, 411, 413, 411, 412, 414, 414, 412, 415, 413, -1, 415, 413, 414, 416, 415, 416, -1, 414, 417, 417, 415, 418, 417, 416, 418, 419, 418, 419, 417, 419, 419, -1, 418, 422, 420, 419, 421, 423, 421, 422, 420, -1, 424, 422, 421, 423, 425, 425, 424, 422, -1, 424, 426, 423, 426, 427, 425, -1, 424, 427, 426, 428, -1, 425, 427, 427, -1, 429, 428, -1, 426, 430, -1, 429, -1, -1, 427, -1, 431, 429, -1, 430, 428, -1, 431, 429, 434, 430, 432, 430, 435, 433, 431, 431, 433, -1, 432, 434, 432, 433, 435, 435, 433, 436, 434, -1, 436, 434, 435, 436, 438, 437, 437, 435, -1, 437, 439, 436, 438, 440, 438, -1, 437, 439, 439, 441, -1, 438, 440, 440, -1, 442, 441, -1, 439, 443, -1, 442, -1, -1, 440, 444, 442, 443, 444, 443, 441, 445, 445, 443, 442, 444, 446, -1, 444, 443, 445, 445, -1, 445, 446, 444, -1, 446, 447, -1, 445, 449, -1, 447, -1, -1, 446, 448, 450, 448, 449, -1, 447, 451, 449, 451, 455, 448, -1, 450, -1, 452, 454, -1, 449, 451, -1, -1, 453, -1, -1, 450, 454, 452, 454, -1, -1, -1, 451, 455, 455, 453, -1, 456, 454, 452, 457, 455, 456, 453, 454, 456, 457, 455, 454, 456, 457, -1, 455, 459, 457, 456, 458, 460, 458, 459, 457, -1, 461, 459, 458, 460, 462, 462, 461, 459, -1, 461, 463, 460, 463, 464, 462, -1, 461, 464, 463, 465, -1, 462, 464, 464, -1, 466, 465, -1, 463, 467, -1, 466, -1, -1, 464, 468, 466, 467, 468, 467, 465, 469, 469, 467, 466, 468, 470, -1, 468, 467, 469, 469, -1, 469, 470, 468, -1, 470, 471, -1, 469, 473, -1, 471, -1, -1, 470, 472, 474, 472, 473, -1, 471, 475, 473, 475, 479, 472, -1, 474, -1, 476, 478, -1, 473, 475, -1, -1, 477, -1, -1, 474, 478, 476, 478, -1, -1, -1, 475, 479, 477, 477, 479, 479, -1, 476, 478, 480, 478, 479, 477, -1, 481, 479, 478, 480, -1, 482, 481, 479, -1, 481, 482, -1, 480, 484, -1, 482, -1, -1, 481, 483, 485, 483, 484, -1, 482, 486, 484, 486, 490, 483, -1, 485, -1, 487, 489, -1, 484, 486, -1, -1, 488, -1, -1, 485, 489, 487, 489, -1, -1, -1, 486, 488, 490, 488, 491, -1, -1, 487, 491, 489, 491, 490, 489, 488, -1, 490, 492, 490, 491, 489, -1, -1, 491, 493, 491, 492, 492, 490, 492, -1, 492, 494, 493, 493, 493, 491, -1, 493, 493, 494, -1, 494, 494, 494, 492, -1, 495, 497, 495, 495, 493, 495, -1, 496, 498, 496, 498, 496, 494, -1, 496, 499, -1, 497, -1, 497, 495, 497, -1, 499, 497, -1, 498, 498, 498, 496, 498, 498, 499, 499, 497, 499, 500, -1, 498, 502, 500, 499, 501, 503, 501, 502, 500, -1, 504, 502, 501, 503, 505, 505, 504, 502, -1, 504, 506, 503, 506, 507, 505, -1, 504, 507, 506, 508, -1, 505, 507, 507, -1, 509, 508, -1, 506, 510, -1, 509, -1, -1, 507, 511, 509, 510, 511, 510, 508, 512, 512, 510, 509, 511, 513, -1, 511, 510, 512, 512, -1, 512, 513, 511, -1, 513, 514, -1, 512, 516, -1, 514, -1, -1, 513, 515, 517, 515, 516, -1, 514, 518, 516, 518, 522, 515, -1, 517, -1, 519, 521, -1, 516, 518, -1, -1, 520, -1, -1, 517, 521, 519, 521, -1, -1, -1, 518, 522, 520, 520, 522, 522, -1, 519, 521, 523, 521, 522, 520, -1, 524, 522, 521, 523, -1, 525, 524, 522, -1, 524, 525, -1, 523, 527, -1, 525, -1, -1, 524, 526, 528, 526, 527, -1, 525, 529, 527, 529, 533, 526, -1, 528, -1, 530, 532, -1, 527, 529, -1, -1, 531, -1, -1, 528, 532, 530, 532, -1, -1, -1, 529, 531, 533, 531, 534, -1, -1, 530, 534, 532, 534, 533, 532, 531, -1, 533, 535, 533, 534, 532, -1, -1, 534, 536, 534, 535, 535, 533, 535, -1, 535, 537, 536, 536, 536, 534, -1, 536, 536, 537, -1, 537, 537, 537, 535, -1, 538, 540, 538, 538, 536, 538, -1, 539, 541, 539, 541, 539, 537, -1, 539, 542, -1, 540, -1, 540, 538, 540, 542, 540, -1, 543, 541, 541, 541, 539, 542, 541, 542, 542, 543, 540, 542, 543, 545, 543, -1, 541, 543, -1, 544, 544, -1, 542, -1, -1, 545, 547, 545, 543, 545, -1, 546, 548, 546, 546, 550, 544, -1, 547, -1, 547, 549, -1, 545, 548, -1, -1, 548, -1, -1, 546, 551, 549, 549, -1, -1, -1, 547, 549, 550, 550, 552, -1, -1, 548, 552, 550, 551, 551, 551, 549, -1, 551, 552, 552, 552, 550, -1, -1, 552, 555, 553, 553, 553, 551, 553, -1, 554, 556, 554, 554, 554, 552, -1, 555, 554, 555, -1, 555, 555, 556, 553, -1, 556, 558, 556, 556, 554, 557, -1, 557, 559, 557, 559, 557, 555, -1, 558, 560, -1, 558, 559, 558, 556, 559, 558, 561, -1, 561, 559, -1, 559, 557, -1, 560, -1, -1, 560, -1, 558, 561, -1, -1, 561, -1, -1, 559, 564, 562, 562, -1, -1, -1, 560, 565, 563, 563, -1, -1, 565, 561, -1, 566, 564, -1, 564, -1, 562, 569, 567, 565, 565, -1, -1, 563, 570, 568, 568, 566, 566, -1, 564, 571, -1, 569, 568, 567, 567, 565, -1, 572, 567, 569, 569, 570, 568, 568, 568, 566, 568, 573, 571, 569, 569, 569, 567, 569, 574, 572, 572, 570, 568, -1, 570, 575, 574, 573, -1, 571, 569, 571, -1, 573, 575, -1, 574, 574, 572, 570, 574, 572, 578, 575, 576, 573, 573, 575, 571, 573, 579, 577, 575, -1, 574, 572, -1, 574, 580, -1, 576, -1, 574, 575, -1, 573, 575, 581, 574, 576, 577, 575, 575, 577, 576, 576, 576, 578, 577, -1, 577, 581, 579, 578, 580, 582, 580, 581, 579, -1, 583, 581, 580, 582, 584, 584, 583, 581, -1, 583, 585, 582, 585, 586, 584, -1, 583, 586, 585, 587, -1, 584, 586, 586, -1, 588, 587, -1, 585, 589, -1, 588, -1, -1, 586, 590, 588, 589, 590, 589, 587, 591, 591, 589, 588, 590, 592, -1, 590, 589, 591, 591, -1, 591, 592, 590, -1, 592, 593, -1, 591, 595, -1, 593, -1, -1, 592, 594, 596, 594, 595, -1, 593, 597, 595, 597, 601, 594, -1, 596, -1, 598, 600, -1, 595, 597, -1, -1, 599, -1, -1, 596, 600, 598, 600, -1, -1, -1, 597, 601, 599, 599, 601, 601, -1, 598, 600, 602, 600, 601, 599, -1, 603, 601, 600, 602, -1, 604, 603, 601, -1, 603, 604, -1, 602, 606, -1, 604, -1, -1, 603, 605, 607, 605, 606, -1, 604, 608, 606, 608, 612, 605, -1, 607, -1, 609, 611, -1, 606, 608, -1, -1, 610, -1, -1, 607, 611, 609, 611, -1, -1, -1, 608, 610, 612, 610, 613, -1, -1, 609, 613, 611, 613, 612, 611, 610, -1, 612, 614, 612, 613, 611, -1, -1, 613, 615, 613, 614, 614, 612, 614, -1, 614, 616, 615, 615, 615, 613, -1, 615, 615, 616, -1, 616, 616, 616, 614, -1, 617, 619, 617, 617, 615, 617, -1, 618, 620, 618, 620, 618, 616, -1, 618, 621, -1, 619, -1, 619, 617, 619, 621, 619, -1, 622, 620, 620, 620, 618, 621, 620, 621, 621, 622, 619, 621, 622, 624, 622, -1, 620, 622, -1, 623, 623, -1, 621, -1, -1, 624, 626, 624, 622, 624, -1, 625, 627, 625, 625, 629, 623, -1, 626, -1, 626, 628, -1, 624, 627, -1, -1, 627, -1, -1, 625, 630, 628, 628, -1, -1, -1, 626, 628, 629, 629, 631, -1, -1, 627, 631, 629, 630, 630, 630, 628, -1, 630, 631, 631, 631, 629, -1, -1, 631, 634, 632, 632, 632, 630, 632, -1, 633, 635, 633, 633, 633, 631, -1, 634, 633, 634, -1, 634, 634, 635, 632, -1, 635, 637, 635, 635, 633, 636, -1, 636, 638, 636, 638, 636, 634, -1, 637, 639, -1, 637, 638, 637, 635, 638, 637, 640, -1, 640, 638, -1, 638, 636, -1, 639, -1, -1, 639, -1, 637, 640, -1, -1, 640, -1, -1, 638, 643, 641, 641, -1, -1, -1, 639, 644, 642, 642, -1, -1, 644, 640, -1, 645, 643, -1, 643, -1, 641, 648, 646, 644, 644, -1, -1, 642, 649, 647, 647, 645, 645, -1, 643, 650, -1, 648, 647, 646, 646, 644, -1, 651, 646, 648, 648, 649, 647, 647, 647, 645, 647, 652, 650, 648, 648, 648, 646, 648, 653, 651, 651, 649, 647, -1, 649, 654, 653, 652, -1, 650, 648, 650, -1, 652, 654, -1, 653, 653, 651, 649, 653, 651, 655, 654, 656, 652, 652, 654, 650, 652, 656, 654, 655, -1, 653, 651, -1, 653, 657, -1, 655, 653, 655, 654, 654, 652, 654, 655, 657, 653, 655, 654, 656, -1, 654, 656, 657, 655, -1, 655, 657, 657, -1, 656, 658, -1, 656, 659, -1, 657, -1, -1, 657, 659, 660, 658, 660, -1, 658, 662, 660, 661, 665, 659, -1, 661, -1, 662, 664, -1, 660, 662, -1, -1, 663, -1, -1, 661, 665, 663, 664, -1, -1, -1, 662, 664, 665, 664, 667, -1, -1, 663, 667, 665, 666, 666, 665, 664, -1, 666, 667, 666, 667, 665, -1, -1, 667, 669, 667, 668, 668, 666, 668, -1, 668, 670, 669, 669, 669, 667, -1, 669, 669, 670, -1, 670, 670, 670, 668, -1, 671, 673, 671, 671, 669, 671, -1, 672, 674, 672, 674, 672, 670, -1, 672, 675, -1, 673, 674, 673, 671, 673, 673, 676, -1, 675, 674, -1, 674, 672, -1, 674, -1, -1, 675, -1, 673, 675, -1, -1, 676, -1, -1, 674, 678, 676, 677, -1, -1, -1, 675, 679, 678, 677, -1, -1, 679, 676, -1, 680, 679, -1, 678, -1, 677, 683, 681, 680, 679, -1, -1, 678, 684, 682, 683, 681, 680, -1, 679, 685, -1, 683, 683, 682, 681, 680, -1, 686, 682, 684, 684, 685, 683, 682, 683, 681, 683, 688, 686, 684, 684, 683, 682, 684, 689, 687, 687, 685, 683, -1, 684, 690, 688, 688, -1, 686, 684, 685, -1, 687, 689, -1, 689, 689, 687, 685, 688, 686, 691, 690, 692, 688, 688, 689, 686, 687, 692, 690, 691, -1, 689, 687, -1, 688, 693, -1, 689, 690, -1, 690, 690, 688, 689, 693, 691, 690, 689, 690, -1, 692, 691, 691, 690, -1, 691, 693, 692, -1, 691, -1, -1, 692, 694, 694, 692, -1, -1, -1, 693, 695, 693, 695, -1, -1, 697, 694, -1, 696, 694, -1, 696, -1, 695, 699, 697, 695, 697, -1, -1, 696, 700, 698, 698, 696, 698, -1, 697, 701, -1, 699, 701, 697, 699, 698, -1, 702, 700, 702, 700, 700, 698, 700, 701, 699, 701, 703, 701, 699, 702, 701, 700, 702, 704, 702, 702, 700, 701, -1, 702, 705, 706, 703, -1, 701, 702, 703, -1, 705, 706, -1, 704, 704, 702, 703, 706, 704, 709, 705, 707, 705, 703, 707, 704, 705, 710, 708, 706, -1, 706, 704, -1, 706, 711, 706, 707, -1, 708, 707, -1, 705, 707, 709, -1, 707, 708, 706, 708, -1, 708, 710, 708, 709, 709, 707, -1, 709, 711, 709, 712, 710, 710, -1, 708, 712, 712, 710, -1, 711, 711, 709, -1, 711, 713, -1, 711, 714, 712, 712, 712, 710, 716, 712, 714, 715, 713, 713, 713, 711, 717, 715, 713, -1, 716, 714, -1, 712, 716, 714, 714, 716, 718, 717, -1, 715, 713, 717, 717, 715, -1, 717, 716, 714, 718, 718, 720, 716, -1, 717, 717, 715, 719, 721, 719, -1, 717, 718, -1, 716, 718, -1, 720, 723, -1, 718, 721, 719, 717, 719, 723, 721, -1, 722, 724, 720, 718, 722, 720, -1, 722, 724, 723, 723, 721, 719, -1, 721, -1, -1, 723, -1, 724, 722, -1, 720, -1, 722, 724, 724, 726, 723, 725, -1, 722, 723, 721, 723, 722, 723, 724, 723, 725, 724, -1, 724, 726, -1, 725, 727, 730, 726, 728, 728, 731, 729, 727, 729, 729, 730, 728, 731, 729, 730, 732, 730, 735, 731, 733, 731, 736, 734, 732, 732, 734, -1, 733, 735, 733, 734, 736, 736, 734, 737, 735, -1, 737, 735, 736, 738, 737, 738, -1, 736, 739, 739, 737, 740, 739, 738, 740, 741, 740, 741, 739, 741, 741, -1, 740, 744, 742, 741, 743, 745, 743, 744, 742, -1, 746, 744, 743, 745, 747, 747, 746, 744, -1, 746, 748, 745, 748, 749, 747, -1, 746, 749, 748, 750, -1, 747, 749, 749, -1, 751, 750, -1, 748, 752, -1, 751, -1, -1, 749, -1, 753, 751, -1, 752, 750, -1, 753, 751, 756, 752, 754, 752, 757, 755, 753, 753, 755, -1, 754, 756, 754, 755, 757, 757, 755, 758, 756, -1, 758, 756, 757, 758, 760, 759, 759, 757, -1, 759, 761, 758, 760, 762, 760, -1, 759, 761, 761, 763, -1, 760, 762, 762, -1, 764, 763, -1, 761, 765, -1, 764, -1, -1, 762, 766, 764, 765, 766, 765, 763, 767, 767, 765, 764, 766, 768, -1, 766, 765, 767, 767, -1, 767, 768, 766, -1, 768, 769, -1, 767, 771, -1, 769, -1, -1, 768, 770, 772, 770, 771, -1, 769, 773, 771, 773, 777, 770, -1, 772, -1, 774, 776, -1, 771, 773, -1, -1, 775, -1, -1, 772, 776, 774, 776, -1, -1, -1, 773, 777, 777, 775, -1, 778, 776, 774, 779, 777, 778, 775, 776, 778, 779, 777, 776, 778, 779, -1, 777, 781, 779, 778, 780, 782, 780, 781, 779, -1, 783, 781, 780, 782, 784, 784, 783, 781, -1, 783, 785, 782, 785, 786, 784, -1, 783, 786, 785, 787, -1, 784, 786, 786, -1, 788, 787, -1, 785, 789, -1, 788, -1, -1, 786, 790, 788, 789, 790, 789, 787, 791, 791, 789, 788, 790, 792, -1, 790, 789, 791, 791, -1, 791, 792, 790, -1, 792, 793, -1, 791, 795, -1, 793, -1, -1, 792, 794, 796, 794, 795, -1, 793, 797, 795, 797, 801, 794, -1, 796, -1, 798, 800, -1, 795, 797, -1, -1, 799, -1, -1, 796, 800, 798, 800, -1, -1, -1, 797, 801, 799, 799, 801, 801, -1, 798, 800, 802, 800, 801, 799, -1, 803, 801, 800, 802, -1, 804, 803, 801, -1, 803, 804, -1, 802, 806, -1, 804, -1, -1, 803, 805, 807, 805, 806, -1, 804, 808, 806, 808, 812, 805, -1, 807, -1, 809, 811, -1, 806, 808, -1, -1, 810, -1, -1, 807, 811, 809, 811, -1, -1, -1, 808, 810, 812, 810, 813, -1, -1, 809, 813, 811, 813, 812, 811, 810, -1, 812, 814, 812, 813, 811, -1, -1, 813, 815, 813, 814, 814, 812, 814, -1, 814, 816, 815, 815, 815, 813, -1, 815, 815, 816, -1, 816, 816, 816, 814, -1, 817, 819, 817, 817, 815, 817, -1, 818, 820, 818, 820, 818, 816, -1, 818, 821, -1, 819, -1, 819, 817, 819, -1, 821, 819, -1, 820, 820, 820, 818, 820, 820, 821, 821, 819, 821, 822, -1, 820, 824, 822, 821, 823, 825, 823, 824, 822, -1, 826, 824, 823, 825, 827, 827, 826, 824, -1, 826, 828, 825, 828, 829, 827, -1, 826, 829, 828, 830, -1, 827, 829, 829, -1, 831, 830, -1, 828, 832, -1, 831, -1, -1, 829, 833, 831, 832, 833, 832, 830, 834, 834, 832, 831, 833, 835, -1, 833, 832, 834, 834, -1, 834, 835, 833, -1, 835, 836, -1, 834, 838, -1, 836, -1, -1, 835, 837, 839, 837, 838, -1, 836, 840, 838, 840, 844, 837, -1, 839, -1, 841, 843, -1, 838, 840, -1, -1, 842, -1, -1, 839, 843, 841, 843, -1, -1, -1, 840, 844, 842, 842, 844, 844, -1, 841, 843, 845, 843, 844, 842, -1, 846, 844, 843, 845, -1, 847, 846, 844, -1, 846, 847, -1, 845, 849, -1, 847, -1, -1, 846, 848, 850, 848, 849, -1, 847, 851, 849, 851, 855, 848, -1, 850, -1, 852, 854, -1, 849, 851, -1, -1, 853, -1, -1, 850, 854, 852, 854, -1, -1, -1, 851, 853, 855, 853, 856, -1, -1, 852, 856, 854, 856, 855, 854, 853, -1, 855, 857, 855, 856, 854, -1, -1, 856, 858, 856, 857, 857, 855, 857, -1, 857, 859, 858, 858, 858, 856, -1, 858, 858, 859, -1, 859, 859, 859, 857, -1, 860, 862, 860, 860, 858, 860, -1, 861, 863, 861, 863, 861, 859, -1, 861, 864, -1, 862, -1, 862, 860, 862, 864, 862, -1, 865, 863, 863, 863, 861, 864, 863, 864, 864, 865, 862, 864, 865, 867, 865, -1, 863, 865, -1, 866, 866, -1, 864, -1, -1, 867, 869, 867, 865, 867, -1, 868, 870, 868, 868, 872, 866, -1, 869, -1, 869, 871, -1, 867, 870, -1, -1, 870, -1, -1, 868, 873, 871, 871, -1, -1, -1, 869, 871, 872, 872, 874, -1, -1, 870, 874, 872, 873, 873, 873, 871, -1, 873, 874, 874, 874, 872, -1, -1, 874, 877, 875, 875, 875, 873, 875, -1, 876, 878, 876, 876, 876, 874, -1, 877, 876, 877, -1, 877, 877, 878, 875, -1, 878, 880, 878, 878, 876, 879, -1, 879, 881, 879, 881, 879, 877, -1, 880, 882, -1, 880, 881, 880, 878, 881, 880, 883, -1, 883, 881, -1, 881, 879, -1, 882, -1, -1, 882, -1, 880, 883, -1, -1, 883, -1, -1, 881, 886, 884, 884, -1, -1, -1, 882, 887, 885, 885, -1, -1, 887, 883, -1, 888, 886, -1, 886, -1, 884, 891, 889, 887, 887, -1, -1, 885, 892, 890, 890, 888, 888, -1, 886, 893, -1, 891, 890, 889, 889, 887, -1, 894, 889, 891, 891, 892, 890, 890, 890, 888, 890, 895, 893, 891, 891, 891, 889, 891, 896, 894, 894, 892, 890, -1, 892, 897, 896, 895, -1, 893, 891, 893, -1, 895, 897, -1, 896, 896, 894, 892, 896, 894, 900, 897, 898, 895, 895, 897, 893, 895, 901, 899, 897, -1, 896, 894, -1, 896, 902, -1, 898, -1, 896, 897, -1, 895, 897, 903, 896, 898, 899, 897, 897, 899, 898, 898, 898, 900, 899, -1, 899, 903, 901, 900, 902, 904, 902, 903, 901, -1, 905, 903, 902, 904, 906, 906, 905, 903, -1, 905, 907, 904, 907, 908, 906, -1, 905, 908, 907, 909, -1, 906, 908, 908, -1, 910, 909, -1, 907, 911, -1, 910, -1, -1, 908, 912, 910, 911, 912, 911, 909, 913, 913, 911, 910, 912, 914, -1, 912, 911, 913, 913, -1, 913, 914, 912, -1, 914, 915, -1, 913, 917, -1, 915, -1, -1, 914, 916, 918, 916, 917, -1, 915, 919, 917, 919, 923, 916, -1, 918, -1, 920, 922, -1, 917, 919, -1, -1, 921, -1, -1, 918, 922, 920, 922, -1, -1, -1, 919, 923, 921, 921, 923, 923, -1, 920, 922, 924, 922, 923, 921, -1, 925, 923, 922, 924, -1, 926, 925, 923, -1, 925, 926, -1, 924, 928, -1, 926, -1, -1, 925, 927, 929, 927, 928, -1, 926, 930, 928, 930, 934, 927, -1, 929, -1, 931, 933, -1, 928, 930, -1, -1, 932, -1, -1, 929, 933, 931, 933, -1, -1, -1, 930, 932, 934, 932, 935, -1, -1, 931, 935, 933, 935, 934, 933, 932, -1, 934, 936, 934, 935, 933, -1, -1, 935, 937, 935, 936, 936, 934, 936, -1, 936, 938, 937, 937, 937, 935, -1, 937, 937, 938, -1, 938, 938, 938, 936, -1, 939, 941, 939, 939, 937, 939, -1, 940, 942, 940, 942, 940, 938, -1, 940, 943, -1, 941, -1, 941, 939, 941, 943, 941, -1, 944, 942, 942, 942, 940, 943, 942, 943, 943, 944, 941, 943, 944, 946, 944, -1, 942, 944, -1, 945, 945, -1, 943, -1, -1, 946, 948, 946, 944, 946, -1, 947, 949, 947, 947, 951, 945, -1, 948, -1, 948, 950, -1, 946, 949, -1, -1, 949, -1, -1, 947, 952, 950, 950, -1, -1, -1, 948, 950, 951, 951, 953, -1, -1, 949, 953, 951, 952, 952, 952, 950, -1, 952, 953, 953, 953, 951, -1, -1, 953, 956, 954, 954, 954, 952, 954, -1, 955, 957, 955, 955, 955, 953, -1, 956, 955, 956, -1, 956, 956, 957, 954, -1, 957, 959, 957, 957, 955, 958, -1, 958, 960, 958, 960, 958, 956, -1, 959, 961, -1, 959, 960, 959, 957, 960, 959, 962, -1, 962, 960, -1, 960, 958, -1, 961, -1, -1, 961, -1, 959, 962, -1, -1, 962, -1, -1, 960, 965, 963, 963, -1, -1, -1, 961, 966, 964, 964, -1, -1, 966, 962, -1, 967, 965, -1, 965, -1, 963, 970, 968, 966, 966, -1, -1, 964, 971, 969, 969, 967, 967, -1, 965, 972, -1, 970, 969, 968, 968, 966, -1, 973, 968, 970, 970, 971, 969, 969, 969, 967, 969, 974, 972, 970, 970, 970, 968, 970, 975, 973, 973, 971, 969, -1, 971, 976, 975, 974, -1, 972, 970, 972, -1, 974, 976, -1, 975, 975, 973, 971, 975, 973, 977, 976, 978, 974, 974, 976, 972, 974, 978, 976, 977, -1, 975, 973, -1, 975, 979, -1, 977, 975, 977, 976, 976, 974, 976, 977, 979, 975, 977, 976, 978, -1, 976, 978, 979, 977, -1, 977, 979, 979, -1, 978, 980, -1, 978, 981, -1, 979, -1, -1, 979, 981, 982, 980, 982, -1, 980, 984, 982, 983, 987, 981, -1, 983, -1, 984, 986, -1, 982, 984, -1, -1, 985, -1, -1, 983, 987, 985, 986, -1, -1, -1, 984, 986, 987, 986, 989, -1, -1, 985, 989, 987, 988, 988, 987, 986, -1, 988, 989, 988, 989, 987, -1, -1, 989, 991, 989, 990, 990, 988, 990, -1, 990, 992, 991, 991, 991, 989, -1, 991, 991, 992, -1, 992, 992, 992, 990, -1, 993, 995, 993, 993, 991, 993, -1, 994, 996, 994, 996, 994, 992, -1, 994, 997, -1, 995, 996, 995, 993, 995, 995, 998, -1, 997, 996, -1, 996, 994, -1, 996, -1, -1, 997, -1, 995, 997, -1, -1, 998, -1, -1, 996, 1000, 998, 999, -1, -1, -1, 997, 1001, 1000, 999, -1, -1, 1001, 998, -1, 1002, 1001, -1, 1000, -1, 999, 1005, 1003, 1002, 1001, -1, -1, 1000, 1006, 1004, 1005, 1003, 1002, -1, 1001, 1007, -1, 1005, 1005, 1004, 1003, 1002, -1, 1008, 1004, 1006, 1006, 1007, 1005, 1004, 1005, 1003, 1005, 1010, 1008, 1006, 1006, 1005, 1004, 1006, 1011, 1009, 1009, 1007, 1005, -1, 1006, 1012, 1010, 1010, -1, 1008, 1006, 1007, -1, 1009, 1011, -1, 1011, 1011, 1009, 1007, 1010, 1008, 1013, 1012, 1014, 1010, 1010, 1011, 1008, 1009, 1014, 1012, 1013, -1, 1011, 1009, -1, 1010, 1015, -1, 1011, 1012, -1, 1012, 1012, 1010, 1011, 1015, 1013, 1012, 1011, 1012, -1, 1014, 1013, 1013, 1012, -1, 1013, 1015, 1014, -1, 1013, -1, -1, 1014, 1016, 1016, 1014, -1, -1, -1, 1015, 1017, 1015, 1017, -1, -1, 1019, 1016, -1, 1018, 1016, -1, 1018, -1, 1017, 1021, 1019, 1017, 1019, -1, -1, 1018, 1022, 1020, 1020, 1018, 1020, -1, 1019, 1023, -1, 1021, 1023, 1019, 1021, 1020, -1, 1024, 1022, 1024, 1022, 1022, 1020, 1022, 1023, 1021, 1023, 1025, 1023, 1021, 1024, 1023, 1022, 1024, 1026, 1024, 1024, 1022, 1023, -1, 1024, 1027, 1028, 1025, -1, 1023, 1024, 1025, -1, 1027, 1028, -1, 1026, 1026, 1024, 1025, 1028, 1026, 1031, 1027, 1029, 1027, 1025, 1029, 1026, 1027, 1032, 1030, 1028, -1, 1028, 1026, -1, 1028, 1033, 1028, 1029, -1, 1030, 1029, -1, 1027, 1029, 1031, -1, 1029, 1030, 1028, 1030, -1, 1030, 1032, 1030, 1031, 1031, 1029, -1, 1031, 1033, 1031, 1034, 1032, 1032, -1, 1030, 1034, 1034, 1032, -1, 1033, 1033, 1031, -1, 1033, 1035, -1, 1033, 1036, 1034, 1034, 1034, 1032, 1038, 1034, 1036, 1037, 1035, 1035, 1035, 1033, 1039, 1037, 1035, -1, 1038, 1036, -1, 1034, 1038, 1036, 1036, 1038, 1040, 1039, -1, 1037, 1035, 1039, 1039, 1037, -1, 1039, 1038, 1036, 1040, 1040, 1042, 1038, -1, 1039, 1039, 1037, 1041, 1043, 1041, -1, 1039, 1040, -1, 1038, 1040, -1, 1042, 1045, -1, 1040, 1043, 1041, 1039, 1041, 1045, 1043, -1, 1044, 1046, 1042, 1040, 1044, 1042, -1, 1044, 1046, 1045, 1045, 1043, 1041, -1, 1043, -1, -1, 1045, -1, 1046, 1044, -1, 1042, 1046, 1044, -1, 1045, 1046, -1, 1046, 1044, 1045, 1047, 1043, 1045, 1046, 1044, 1048, 1046, 1047, -1, 1045, 1049, 1047, 1046, 1048, 1050, 1048, 1049, 1047, -1, 1051, 1049, 1048, 1050, 1052, 1052, 1051, 1049, -1, 1051, 1053, 1050, 1053, 1054, 1052, -1, 1051, 1054, 1053, 1055, -1, 1052, 1054, 1054, -1, 1056, 1055, -1, 1053, 1057, -1, 1056, -1, -1, 1054, 1058, 1056, 1057, 1058, 1057, 1055, 1059, 1059, 1057, 1056, 1058, 1060, -1, 1058, 1057, 1059, 1059, -1, 1059, 1060, 1058, -1, 1060, 1061, -1, 1059, 1063, -1, 1061, -1, -1, 1060, 1062, 1064, 1062, 1063, -1, 1061, 1065, 1063, 1065, 1069, 1062, -1, 1064, -1, 1066, 1068, -1, 1063, 1065, -1, -1, 1067, -1, -1, 1064, 1068, 1066, 1068, -1, -1, -1, 1065, 1069, 1067, 1067, 1069, 1069, -1, 1066, 1068, 1070, 1068, 1069, 1067, -1, 1071, 1069, 1068, 1070, -1, 1072, 1071, 1069, -1, 1071, 1072, -1, 1070, 1074, -1, 1072, -1, -1, 1071, 1073, 1075, 1073, 1074, -1, 1072, 1076, 1074, 1076, 1080, 1073, -1, 1075, -1, 1077, 1079, -1, 1074, 1076, -1, -1, 1078, -1, -1, 1075, 1079, 1077, 1079, -1, -1, -1, 1076, 1078, 1080, 1078, 1081, -1, -1, 1077, 1081, 1079, 1081, 1080, 1079, 1078, -1, 1080, 1082, 1080, 1081, 1079, -1, -1, 1081, 1083, 1081, 1082, 1082, 1080, 1082, -1, 1082, 1084, 1083, 1083, 1083, 1081, -1, 1083, 1083, 1084, -1, 1084, 1084, 1084, 1082, -1, 1085, 1087, 1085, 1085, 1083, 1085, -1, 1086, 1088, 1086, 1088, 1086, 1084, -1, 1086, 1089, -1, 1087, -1, 1087, 1085, 1087, 1089, 1087, -1, 1090, 1088, 1088, 1088, 1086, 1089, 1088, 1089, 1089, 1090, 1087, 1089, 1090, 1092, 1090, -1, 1088, 1090, -1, 1091, 1091, -1, 1089, -1, -1, 1092, 1094, 1092, 1090, 1092, -1, 1093, 1095, 1093, 1093, 1097, 1091, -1, 1094, -1, 1094, 1096, -1, 1092, 1095, -1, -1, 1095, -1, -1, 1093, 1098, 1096, 1096, -1, -1, -1, 1094, 1096, 1097, 1097, 1099, -1, -1, 1095, 1099, 1097, 1098, 1098, 1098, 1096, -1, 1098, 1099, 1099, 1099, 1097, -1, -1, 1099, 1102, 1100, 1100, 1100, 1098, 1100, -1, 1101, 1103, 1101, 1101, 1101, 1099, -1, 1102, 1101, 1102, -1, 1102, 1102, 1103, 1100, -1, 1103, 1105, 1103, 1103, 1101, 1104, -1, 1104, 1106, 1104, 1106, 1104, 1102, -1, 1105, 1107, -1, 1105, 1106, 1105, 1103, 1106, 1105, 1108, -1, 1108, 1106, -1, 1106, 1104, -1, 1107, -1, -1, 1107, -1, 1105, 1108, -1, -1, 1108, -1, -1, 1106, 1111, 1109, 1109, -1, -1, -1, 1107, 1112, 1110, 1110, -1, -1, 1112, 1108, -1, 1113, 1111, -1, 1111, -1, 1109, 1116, 1114, 1112, 1112, -1, -1, 1110, 1117, 1115, 1115, 1113, 1113, -1, 1111, 1118, -1, 1116, 1115, 1114, 1114, 1112, -1, 1119, 1114, 1116, 1116, 1117, 1115, 1115, 1115, 1113, 1115, 1120, 1118, 1116, 1116, 1116, 1114, 1116, 1121, 1119, 1119, 1117, 1115, -1, 1117, 1122, 1121, 1120, -1, 1118, 1116, 1118, -1, 1120, 1122, -1, 1121, 1121, 1119, 1117, 1121, 1119, 1123, 1122, 1124, 1120, 1120, 1122, 1118, 1120, 1124, 1122, 1123, -1, 1121, 1119, -1, 1121, 1125, -1, 1123, 1121, 1123, 1122, 1122, 1120, 1122, 1123, 1125, 1121, 1123, 1122, 1124, -1, 1122, 1124, 1125, 1123, -1, 1123, 1125, 1125, -1, 1124, 1126, -1, 1124, 1127, -1, 1125, -1, -1, 1125, 1127, 1128, 1126, 1128, -1, 1126, 1130, 1128, 1129, 1133, 1127, -1, 1129, -1, 1130, 1132, -1, 1128, 1130, -1, -1, 1131, -1, -1, 1129, 1133, 1131, 1132, -1, -1, -1, 1130, 1132, 1133, 1132, 1135, -1, -1, 1131, 1135, 1133, 1134, 1134, 1133, 1132, -1, 1134, 1135, 1134, 1135, 1133, -1, -1, 1135, 1137, 1135, 1136, 1136, 1134, 1136, -1, 1136, 1138, 1137, 1137, 1137, 1135, -1, 1137, 1137, 1138, -1, 1138, 1138, 1138, 1136, -1, 1139, 1141, 1139, 1139, 1137, 1139, -1, 1140, 1142, 1140, 1142, 1140, 1138, -1, 1140, 1143, -1, 1141, 1142, 1141, 1139, 1141, 1141, 1144, -1, 1143, 1142, -1, 1142, 1140, -1, 1142, -1, -1, 1143, -1, 1141, 1143, -1, -1, 1144, -1, -1, 1142, 1146, 1144, 1145, -1, -1, -1, 1143, 1147, 1146, 1145, -1, -1, 1147, 1144, -1, 1148, 1147, -1, 1146, -1, 1145, 1151, 1149, 1148, 1147, -1, -1, 1146, 1152, 1150, 1151, 1149, 1148, -1, 1147, 1153, -1, 1151, 1151, 1150, 1149, 1148, -1, 1154, 1150, 1152, 1152, 1153, 1151, 1150, 1151, 1149, 1151, 1156, 1154, 1152, 1152, 1151, 1150, 1152, 1157, 1155, 1155, 1153, 1151, -1, 1152, 1158, 1156, 1156, -1, 1154, 1152, 1153, -1, 1155, 1157, -1, 1157, 1157, 1155, 1153, 1156, 1154, 1159, 1158, 1160, 1156, 1156, 1157, 1154, 1155, 1160, 1158, 1159, -1, 1157, 1155, -1, 1156, 1161, -1, 1157, 1158, -1, 1158, 1158, 1156, 1157, 1161, 1159, 1158, 1157, 1158, -1, 1160, 1159, 1159, 1158, -1, 1159, 1161, 1160, -1, 1159, -1, -1, 1160, 1162, 1162, 1160, -1, -1, -1, 1161, 1163, 1161, 1163, -1, -1, 1165, 1162, -1, 1164, 1162, -1, 1164, -1, 1163, 1167, 1165, 1163, 1165, -1, -1, 1164, 1168, 1166, 1166, 1164, 1166, -1, 1165, 1169, -1, 1167, 1169, 1165, 1167, 1166, -1, 1170, 1168, 1170, 1168, 1168, 1166, 1168, 1169, 1167, 1169, 1171, 1169, 1167, 1170, 1169, 1168, 1170, 1172, 1170, 1170, 1168, 1169, -1, 1170, 1173, 1174, 1171, -1, 1169, 1170, 1171, -1, 1173, 1174, -1, 1172, 1172, 1170, 1171, 1174, 1172, 1177, 1173, 1175, 1173, 1171, 1175, 1172, 1173, 1178, 1176, 1174, -1, 1174, 1172, -1, 1174, 1179, 1174, 1175, -1, 1176, 1175, -1, 1173, 1175, 1177, -1, 1175, 1176, 1174, 1176, -1, 1176, 1178, 1176, 1177, 1177, 1175, -1, 1177, 1179, 1177, 1180, 1178, 1178, -1, 1176, 1180, 1180, 1178, -1, 1179, 1179, 1177, -1, 1179, 1181, -1, 1179, 1182, 1180, 1180, 1180, 1178, 1184, 1180, 1182, 1183, 1181, 1181, 1181, 1179, 1185, 1183, 1181, -1, 1184, 1182, -1, 1180, 1184, 1182, 1182, 1184, 1186, 1185, -1, 1183, 1181, 1185, 1185, 1183, -1, 1185, 1184, 1182, 1186, 1186, 1188, 1184, -1, 1185, 1185, 1183, 1187, 1189, 1187, -1, 1185, 1186, -1, 1184, 1186, -1, 1188, 1191, -1, 1186, 1189, 1187, 1185, 1187, 1191, 1189, -1, 1190, 1192, 1188, 1186, 1190, 1188, -1, 1190, 1192, 1191, 1191, 1189, 1187, -1, 1189, -1, -1, 1191, -1, 1192, 1190, -1, 1188, 1193, 1190, 1191, 1192, -1, 1192, 1190, 1192, 1191, 1191, 1189, 1194, 1193, 1191, 1190, 1192, 1195, 1194, 1193, 1191, -1, 1193, 1194, -1, 1192, 1196, -1, 1194, -1, -1, 1193, 1195, 1197, 1195, 1196, -1, 1194, 1198, 1196, 1198, 1202, 1195, -1, 1197, -1, 1199, 1201, -1, 1196, 1198, -1, -1, 1200, -1, -1, 1197, 1201, 1199, 1201, -1, -1, -1, 1198, 1200, 1202, 1200, 1203, -1, -1, 1199, 1203, 1201, 1203, 1202, 1201, 1200, -1, 1202, 1204, 1202, 1203, 1201, -1, -1, 1203, 1205, 1203, 1204, 1204, 1202, 1204, -1, 1204, 1206, 1205, 1205, 1205, 1203, -1, 1205, 1205, 1206, -1, 1206, 1206, 1206, 1204, -1, 1207, 1209, 1207, 1207, 1205, 1207, -1, 1208, 1210, 1208, 1210, 1208, 1206, -1, 1208, 1211, -1, 1209, 1210, 1209, 1207, 1209, 1209, 1212, -1, 1211, 1210, -1, 1210, 1208, -1, 1210, -1, -1, 1211, -1, 1209, 1211, -1, -1, 1212, -1, -1, 1210, 1214, 1212, 1213, -1, -1, -1, 1211, 1215, 1214, 1213, -1, -1, 1215, 1212, -1, 1216, 1215, -1, 1214, -1, 1213, 1219, 1217, 1216, 1215, -1, -1, 1214, 1220, 1218, 1219, 1217, 1216, -1, 1215, 1221, -1, 1219, 1219, 1218, 1217, 1216, -1, 1222, 1218, 1220, 1220, 1221, 1219, 1218, 1219, 1217, 1219, 1224, 1222, 1220, 1220, 1219, 1218, 1220, 1225, 1223, 1223, 1221, 1219, -1, 1220, 1226, 1224, 1224, -1, 1222, 1220, 1221, -1, 1223, 1225, -1, 1225, 1225, 1223, 1221, 1224, 1222, 1227, 1226, 1228, 1224, 1224, 1225, 1222, 1223, 1228, 1226, 1227, -1, 1225, 1223, -1, 1224, 1229, -1, 1225, 1226, -1, 1226, 1226, 1224, 1225, 1229, 1227, 1226, 1225, 1226, -1, 1228, 1227, 1227, 1226, -1, 1227, 1229, 1228, -1, 1227, -1, -1, 1228, 1230, 1230, 1228, -1, -1, -1, 1229, 1231, 1229, 1231, -1, -1, 1233, 1230, -1, 1232, 1230, -1, 1232, -1, 1231, 1235, 1233, 1231, 1233, -1, -1, 1232, 1236, 1234, 1234, 1232, 1234, -1, 1233, 1237, -1, 1235, 1237, 1233, 1235, 1234, -1, 1238, 1236, 1238, 1236, 1236, 1234, 1236, 1237, 1235, 1237, 1239, 1237, 1235, 1238, 1237, 1236, 1238, 1240, 1238, 1238, 1236, 1237, -1, 1238, 1241, 1242, 1239, -1, 1237, 1238, 1239, -1, 1241, 1242, -1, 1240, 1240, 1238, 1239, 1242, 1240, 1245, 1241, 1243, 1241, 1239, 1243, 1240, 1241, 1246, 1244, 1242, -1, 1242, 1240, -1, 1242, 1247, 1242, 1243, -1, 1244, 1243, -1, 1241, 1243, 1245, -1, 1243, 1244, 1242, 1244, -1, 1244, 1246, 1244, 1245, 1245, 1243, -1, 1245, 1247, 1245, 1248, 1246, 1246, -1, 1244, 1248, 1248, 1246, -1, 1247, 1247, 1245, -1, 1247, 1249, -1, 1247, 1250, 1248, 1248, 1248, 1246, 1252, 1248, 1250, 1251, 1249, 1249, 1249, 1247, 1253, 1251, 1249, -1, 1252, 1250, -1, 1248, 1252, 1250, 1250, 1252, 1254, 1253, -1, 1251, 1249, 1253, 1253, 1251, -1, 1253, 1252, 1250, 1254, 1254, 1256, 1252, -1, 1253, 1253, 1251, 1255, 1257, 1255, -1, 1253, 1254, -1, 1252, 1254, -1, 1256, 1259, -1, 1254, 1257, 1255, 1253, 1255, 1259, 1257, -1, 1258, 1260, 1256, 1254, 1258, 1256, -1, 1258, 1260, 1259, 1259, 1257, 1255, -1, 1257, -1, -1, 1259, -1, 1260, 1258, 1261, 1256, -1, 1258, 1260, 1260, -1, 1258, 1260, -1, 1259, 1261, 1257, 1259, -1, 1259, 1260, 1258, 1260, 1260, -1, -1, 1260, 1261, 1259, 1261, 1263, 1261, 1261, -1, 1260, 1262, 1262, 1264, 1262, 1262, -1, 1261, 1264, 1263, -1, 1265, 1263, 1262, 1263, -1, 1264, 1268, 1266, 1264, 1264, 1263, -1, 1265, 1269, 1267, 1267, 1265, 1265, -1, 1264, 1270, -1, 1268, 1268, 1266, 1266, 1265, -1, 1271, 1267, 1269, 1269, 1269, 1267, 1267, 1268, 1266, 1268, 1272, 1270, 1268, 1269, 1268, 1267, 1269, 1273, 1271, 1271, 1269, 1268, -1, 1269, 1274, 1273, 1272, -1, 1270, 1269, 1270, -1, 1272, 1274, -1, 1273, 1273, 1271, 1270, 1273, 1271, 1277, 1274, 1276, 1273, 1272, 1274, 1271, 1272, 1278, 1276, 1275, -1, 1274, 1272, -1, 1273, 1279, 1274, 1275, -1, 1276, 1275, -1, 1273, 1274, 1277, -1, 1275, 1276, 1274, 1275, -1, 1276, 1278, 1276, 1277, 1276, 1275, -1, 1277, 1279, 1277, 1280, 1278, 1277, -1, 1276, 1280, 1280, 1278, -1, 1279, 1278, 1277, -1, 1279, 1281, -1, 1279, 1282, 1280, 1279, 1280, 1278, 1284, 1280, 1282, 1282, 1281, 1281, 1280, 1279, 1285, 1283, 1281, -1, 1283, 1281, -1, 1280, 1283, 1282, 1282, 1284, 1286, 1284, -1, 1282, 1281, 1284, 1285, 1283, -1, 1285, 1283, 1282, 1285, 1285, 1287, 1284, -1, 1284, 1285, 1283, 1286, 1288, 1286, -1, 1285, 1286, -1, 1284, 1286, -1, 1287, 1291, -1, 1286, 1289, 1287, 1285, 1287, 1290, 1288, -1, 1290, 1292, 1288, 1286, 1290, 1288, -1, 1289, 1291, 1291, 1291, 1289, 1287, -1, 1289, -1, -1, 1290, -1, 1292, 1290, 1291, 1288, 1294, 1290, -1, 1291, 1290, 1292, 1293, 1293, 1291, 1292, 1289, 1295, 1293, 1291, 1294, 1292, 1290, 1293, 1296, 1294, 1294, 1292, 1295, 1293, 1291, -1, 1294, 1295, 1297, 1293, -1, 1294, 1292, 1295, -1, 1296, 1296, -1, 1294, 1297, 1295, 1293, 1297, 1295, 1299, 1295, 1297, 1296, 1296, 1298, 1294, 1296, 1300, 1298, 1296, -1, 1297, 1295, -1, 1297, 1297, 1299, 1297, 1299, 1301, 1298, -1, 1296, 1298, 1298, 1300, 1298, -1, 1300, 1297, 1299, 1299, 1299, 1301, 1299, -1, 1298, 1300, 1300, 1300, 1302, 1300, -1, 1300, 1301, -1, 1299, 1301, -1, 1301, 1306, -1, 1301, 1304, 1302, 1300, 1302, 1304, 1302, -1, 1305, 1307, 1303, 1301, 1305, 1303, -1, 1303, 1305, 1306, 1306, 1304, 1302, -1, 1304, -1, -1, 1304, -1, 1306, 1305, -1, 1303, 1307, 1305, -1, 1305, 1307, -1, 1307, 1306, 1306, -1, 1304, 1308, 1310, 1306, 1308, 1307, 1307, 1305, 1307, 1309, 1311, 1309, 1307, -1, 1308, 1308, -1, 1306, 1308, -1, 1308, 1313, -1, 1309, 1311, 1309, 1307, 1309, 1311, 1309, -1, 1312, 1314, 1310, 1308, 1312, 1310, -1, 1310, 1312, 1313, 1313, 1311, 1309, -1, 1311, -1, -1, 1311, 1313, 1313, 1312, 1315, 1310, -1, 1312, 1312, 1312, -1, 1314, 1314, -1, 1313, 1313, 1311, 1313, -1, 1313, 1315, -1, -1, 1314, 1312, 1314, 1314, 1316, -1, 1314, -1, -1, 1313, 1319, 1315, 1315, 1317, 1317, -1, 1315, 1316, 1314, 1318, 1320, 1316, -1, 1316, 1318, 1317, -1, 1315, 1316, -1, 1317, 1319, 1320, 1317, 1318, 1318, -1, 1316, -1, 1317, -1, 1318, 1318, -1, 1319, 1319, -1, 1317, 1319, 1320, 1318, 1319, 1319, 1319, -1, 1320, 1319, -1, 1320, 1318, 1320, 1320, 1319, 1321, 1321, -1, 1320, 1322, -1, 1321, 1323, 1326, 1322, 1324, 1324, 1327, 1325, 1323, 1325, 1325, 1326, 1324, 1327, 1325, 1326, 1328, 1326, 1331, 1327, 1329, 1327, 1332, 1330, 1328, 1328, 1330, -1, 1329, 1331, 1329, 1330, 1332, 1332, 1330, 1333, 1331, -1, 1333, 1331, 1332, 1334, 1333, 1334, -1, 1332, 1335, 1335, 1333, 1336, 1335, 1334, 1336, 1337, 1336, 1337, 1335, 1337, 1337, -1, 1336, 1340, 1338, 1337, 1339, 1341, 1339, 1340, 1338, -1, 1342, 1340, 1339, 1341, 1343, 1343, 1342, 1340, -1, 1342, 1344, 1341, 1344, 1345, 1343, -1, 1342, 1345, 1344, 1346, -1, 1343, 1345, 1345, -1, 1347, 1346, -1, 1344, 1348, -1, 1347, -1, -1, 1345, -1, 1349, 1347, -1, 1348, 1346, -1, 1349, 1347, 1352, 1348, 1350, 1348, 1353, 1351, 1349, 1349, 1351, -1, 1350, 1352, 1350, 1351, 1353, 1353, 1351, 1354, 1352, -1, 1354, 1352, 1353, 1354, 1356, 1355, 1355, 1353, -1, 1355, 1357, 1354, 1356, 1358, 1356, -1, 1355, 1357, 1357, 1359, -1, 1356, 1358, 1358, -1, 1360, 1359, -1, 1357, 1361, -1, 1360, -1, -1, 1358, 1362, 1360, 1361, 1362, 1361, 1359, 1363, 1363, 1361, 1360, 1362, 1364, -1, 1362, 1361, 1363, 1363, -1, 1363, 1364, 1362, -1, 1364, 1365, -1, 1363, 1367, -1, 1365, -1, -1, 1364, 1366, 1368, 1366, 1367, -1, 1365, 1369, 1367, 1369, 1373, 1366, -1, 1368, -1, 1370, 1372, -1, 1367, 1369, -1, -1, 1371, -1, -1, 1368, 1372, 1370, 1372, -1, -1, -1, 1369, 1373, 1373, 1371, -1, 1374, 1372, 1370, 1375, 1373, 1374, 1371, 1372, 1374, 1375, 1373, 1372, 1374, 1375, -1, 1373, 1377, 1375, 1374, 1376, 1378, 1376, 1377, 1375, -1, 1379, 1377, 1376, 1378, 1380, 1380, 1379, 1377, -1, 1379, 1381, 1378, 1381, 1382, 1380, -1, 1379, 1382, 1381, 1383, -1, 1380, 1382, 1382, -1, 1384, 1383, -1, 1381, 1385, -1, 1384, -1, -1, 1382, 1386, 1384, 1385, 1386, 1385, 1383, 1387, 1387, 1385, 1384, 1386, 1388, -1, 1386, 1385, 1387, 1387, -1, 1387, 1388, 1386, -1, 1388, 1389, -1, 1387, 1391, -1, 1389, -1, -1, 1388, 1390, 1392, 1390, 1391, -1, 1389, 1393, 1391, 1393, 1397, 1390, -1, 1392, -1, 1394, 1396, -1, 1391, 1393, -1, -1, 1395, -1, -1, 1392, 1396, 1394, 1396, -1, -1, -1, 1393, 1397, 1395, 1395, 1397, 1397, -1, 1394, 1396, 1398, 1396, 1397, 1395, -1, 1399, 1397, 1396, 1398, -1, 1400, 1399, 1397, -1, 1399, 1400, -1, 1398, 1402, -1, 1400, -1, -1, 1399, 1401, 1403, 1401, 1402, -1, 1400, 1404, 1402, 1404, 1408, 1401, -1, 1403, -1, 1405, 1407, -1, 1402, 1404, -1, -1, 1406, -1, -1, 1403, 1407, 1405, 1407, -1, -1, -1, 1404, 1406, 1408, 1406, 1409, -1, -1, 1405, 1409, 1407, 1409, 1408, 1407, 1406, -1, 1408, 1410, 1408, 1409, 1407, -1, -1, 1409, 1411, 1409, 1410, 1410, 1408, 1410, -1, 1410, 1412, 1411, 1411, 1411, 1409, -1, 1411, 1411, 1412, -1, 1412, 1412, 1412, 1410, -1, 1413, 1415, 1413, 1413, 1411, 1413, -1, 1414, 1416, 1414, 1416, 1414, 1412, -1, 1414, 1417, -1, 1415, -1, 1415, 1413, 1415, -1, 1417, 1415, -1, 1416, 1416, 1416, 1414, 1416, 1416, 1417, 1417, 1415, 1417, 1418, -1, 1416, 1420, 1418, 1417, 1419, 1421, 1419, 1420, 1418, -1, 1422, 1420, 1419, 1421, 1423, 1423, 1422, 1420, -1, 1422, 1424, 1421, 1424, 1425, 1423, -1, 1422, 1425, 1424, 1426, -1, 1423, 1425, 1425, -1, 1427, 1426, -1, 1424, 1428, -1, 1427, -1, -1, 1425, 1429, 1427, 1428, 1429, 1428, 1426, 1430, 1430, 1428, 1427, 1429, 1431, -1, 1429, 1428, 1430, 1430, -1, 1430, 1431, 1429, -1, 1431, 1432, -1, 1430, 1434, -1, 1432, -1, -1, 1431, 1433, 1435, 1433, 1434, -1, 1432, 1436, 1434, 1436, 1440, 1433, -1, 1435, -1, 1437, 1439, -1, 1434, 1436, -1, -1, 1438, -1, -1, 1435, 1439, 1437, 1439, -1, -1, -1, 1436, 1440, 1438, 1438, 1440, 1440, -1, 1437, 1439, 1441, 1439, 1440, 1438, -1, 1442, 1440, 1439, 1441, -1, 1443, 1442, 1440, -1, 1442, 1443, -1, 1441, 1445, -1, 1443, -1, -1, 1442, 1444, 1446, 1444, 1445, -1, 1443, 1447, 1445, 1447, 1451, 1444, -1, 1446, -1, 1448, 1450, -1, 1445, 1447, -1, -1, 1449, -1, -1, 1446, 1450, 1448, 1450, -1, -1, -1, 1447, 1449, 1451, 1449, 1452, -1, -1, 1448, 1452, 1450, 1452, 1451, 1450, 1449, -1, 1451, 1453, 1451, 1452, 1450, -1, -1, 1452, 1454, 1452, 1453, 1453, 1451, 1453, -1, 1453, 1455, 1454, 1454, 1454, 1452, -1, 1454, 1454, 1455, -1, 1455, 1455, 1455, 1453, -1, 1456, 1458, 1456, 1456, 1454, 1456, -1, 1457, 1459, 1457, 1459, 1457, 1455, -1, 1457, 1460, -1, 1458, -1, 1458, 1456, 1458, 1460, 1458, -1, 1461, 1459, 1459, 1459, 1457, 1460, 1459, 1460, 1460, 1461, 1458, 1460, 1461, 1463, 1461, -1, 1459, 1461, -1, 1462, 1462, -1, 1460, -1, -1, 1463, 1465, 1463, 1461, 1463, -1, 1464, 1466, 1464, 1464, 1468, 1462, -1, 1465, -1, 1465, 1467, -1, 1463, 1466, -1, -1, 1466, -1, -1, 1464, 1469, 1467, 1467, -1, -1, -1, 1465, 1467, 1468, 1468, 1470, -1, -1, 1466, 1470, 1468, 1469, 1469, 1469, 1467, -1, 1469, 1470, 1470, 1470, 1468, -1, -1, 1470, 1473, 1471, 1471, 1471, 1469, 1471, -1, 1472, 1474, 1472, 1472, 1472, 1470, -1, 1473, 1472, 1473, -1, 1473, 1473, 1474, 1471, -1, 1474, 1476, 1474, 1474, 1472, 1475, -1, 1475, 1477, 1475, 1477, 1475, 1473, -1, 1476, 1478, -1, 1476, 1477, 1476, 1474, 1477, 1476, 1479, -1, 1479, 1477, -1, 1477, 1475, -1, 1478, -1, -1, 1478, -1, 1476, 1479, -1, -1, 1479, -1, -1, 1477, 1482, 1480, 1480, -1, -1, -1, 1478, 1483, 1481, 1481, -1, -1, 1483, 1479, -1, 1484, 1482, -1, 1482, -1, 1480, 1487, 1485, 1483, 1483, -1, -1, 1481, 1488, 1486, 1486, 1484, 1484, -1, 1482, 1489, -1, 1487, 1486, 1485, 1485, 1483, -1, 1490, 1485, 1487, 1487, 1488, 1486, 1486, 1486, 1484, 1486, 1491, 1489, 1487, 1487, 1487, 1485, 1487, 1492, 1490, 1490, 1488, 1486, -1, 1488, 1493, 1492, 1491, -1, 1489, 1487, 1489, -1, 1491, 1493, -1, 1492, 1492, 1490, 1488, 1492, 1490, 1496, 1493, 1494, 1491, 1491, 1493, 1489, 1491, 1497, 1495, 1493, -1, 1492, 1490, -1, 1492, 1498, -1, 1494, -1, 1492, 1493, -1, 1491, 1493, 1499, 1492, 1494, 1495, 1493, 1493, 1495, 1494, 1494, 1494, 1496, 1495, -1, 1495, 1499, 1497, 1496, 1498, 1500, 1498, 1499, 1497, -1, 1501, 1499, 1498, 1500, 1502, 1502, 1501, 1499, -1, 1501, 1503, 1500, 1503, 1504, 1502, -1, 1501, 1504, 1503, 1505, -1, 1502, 1504, 1504, -1, 1506, 1505, -1, 1503, 1507, -1, 1506, -1, -1, 1504, 1508, 1506, 1507, 1508, 1507, 1505, 1509, 1509, 1507, 1506, 1508, 1510, -1, 1508, 1507, 1509, 1509, -1, 1509, 1510, 1508, -1, 1510, 1511, -1, 1509, 1513, -1, 1511, -1, -1, 1510, 1512, 1514, 1512, 1513, -1, 1511, 1515, 1513, 1515, 1519, 1512, -1, 1514, -1, 1516, 1518, -1, 1513, 1515, -1, -1, 1517, -1, -1, 1514, 1518, 1516, 1518, -1, -1, -1, 1515, 1519, 1517, 1517, 1519, 1519, -1, 1516, 1518, 1520, 1518, 1519, 1517, -1, 1521, 1519, 1518, 1520, -1, 1522, 1521, 1519, -1, 1521, 1522, -1, 1520, 1524, -1, 1522, -1, -1, 1521, 1523, 1525, 1523, 1524, -1, 1522, 1526, 1524, 1526, 1530, 1523, -1, 1525, -1, 1527, 1529, -1, 1524, 1526, -1, -1, 1528, -1, -1, 1525, 1529, 1527, 1529, -1, -1, -1, 1526, 1528, 1530, 1528, 1531, -1, -1, 1527, 1531, 1529, 1531, 1530, 1529, 1528, -1, 1530, 1532, 1530, 1531, 1529, -1, -1, 1531, 1533, 1531, 1532, 1532, 1530, 1532, -1, 1532, 1534, 1533, 1533, 1533, 1531, -1, 1533, 1533, 1534, -1, 1534, 1534, 1534, 1532, -1, 1535, 1537, 1535, 1535, 1533, 1535, -1, 1536, 1538, 1536, 1538, 1536, 1534, -1, 1536, 1539, -1, 1537, -1, 1537, 1535, 1537, 1539, 1537, -1, 1540, 1538, 1538, 1538, 1536, 1539, 1538, 1539, 1539, 1540, 1537, 1539, 1540, 1542, 1540, -1, 1538, 1540, -1, 1541, 1541, -1, 1539, -1, -1, 1542, 1544, 1542, 1540, 1542, -1, 1543, 1545, 1543, 1543, 1547, 1541, -1, 1544, -1, 1544, 1546, -1, 1542, 1545, -1, -1, 1545, -1, -1, 1543, 1548, 1546, 1546, -1, -1, -1, 1544, 1546, 1547, 1547, 1549, -1, -1, 1545, 1549, 1547, 1548, 1548, 1548, 1546, -1, 1548, 1549, 1549, 1549, 1547, -1, -1, 1549, 1552, 1550, 1550, 1550, 1548, 1550, -1, 1551, 1553, 1551, 1551, 1551, 1549, -1, 1552, 1551, 1552, -1, 1552, 1552, 1553, 1550, -1, 1553, 1555, 1553, 1553, 1551, 1554, -1, 1554, 1556, 1554, 1556, 1554, 1552, -1, 1555, 1557, -1, 1555, 1556, 1555, 1553, 1556, 1555, 1558, -1, 1558, 1556, -1, 1556, 1554, -1, 1557, -1, -1, 1557, -1, 1555, 1558, -1, -1, 1558, -1, -1, 1556, 1561, 1559, 1559, -1, -1, -1, 1557, 1562, 1560, 1560, -1, -1, 1562, 1558, -1, 1563, 1561, -1, 1561, -1, 1559, 1566, 1564, 1562, 1562, -1, -1, 1560, 1567, 1565, 1565, 1563, 1563, -1, 1561, 1568, -1, 1566, 1565, 1564, 1564, 1562, -1, 1569, 1564, 1566, 1566, 1567, 1565, 1565, 1565, 1563, 1565, 1570, 1568, 1566, 1566, 1566, 1564, 1566, 1571, 1569, 1569, 1567, 1565, -1, 1567, 1572, 1571, 1570, -1, 1568, 1566, 1568, -1, 1570, 1572, -1, 1571, 1571, 1569, 1567, 1571, 1569, 1573, 1572, 1574, 1570, 1570, 1572, 1568, 1570, 1574, 1572, 1573, -1, 1571, 1569, -1, 1571, 1575, -1, 1573, 1571, 1573, 1572, 1572, 1570, 1572, 1573, 1575, 1571, 1573, 1572, 1574, -1, 1572, 1574, 1575, 1573, -1, 1573, 1575, 1575, -1, 1574, 1576, -1, 1574, 1577, -1, 1575, -1, -1, 1575, 1577, 1578, 1576, 1578, -1, 1576, 1580, 1578, 1579, 1583, 1577, -1, 1579, -1, 1580, 1582, -1, 1578, 1580, -1, -1, 1581, -1, -1, 1579, 1583, 1581, 1582, -1, -1, -1, 1580, 1582, 1583, 1582, 1585, -1, -1, 1581, 1585, 1583, 1584, 1584, 1583, 1582, -1, 1584, 1585, 1584, 1585, 1583, -1, -1, 1585, 1587, 1585, 1586, 1586, 1584, 1586, -1, 1586, 1588, 1587, 1587, 1587, 1585, -1, 1587, 1587, 1588, -1, 1588, 1588, 1588, 1586, -1, 1589, 1591, 1589, 1589, 1587, 1589, -1, 1590, 1592, 1590, 1592, 1590, 1588, -1, 1590, 1593, -1, 1591, 1592, 1591, 1589, 1591, 1591, 1594, -1, 1593, 1592, -1, 1592, 1590, -1, 1592, -1, -1, 1593, -1, 1591, 1593, -1, -1, 1594, -1, -1, 1592, 1596, 1594, 1595, -1, -1, -1, 1593, 1597, 1596, 1595, -1, -1, 1597, 1594, -1, 1598, 1597, -1, 1596, -1, 1595, 1601, 1599, 1598, 1597, -1, -1, 1596, 1602, 1600, 1601, 1599, 1598, -1, 1597, 1603, -1, 1601, 1601, 1600, 1599, 1598, -1, 1604, 1600, 1602, 1602, 1603, 1601, 1600, 1601, 1599, 1601, 1606, 1604, 1602, 1602, 1601, 1600, 1602, 1607, 1605, 1605, 1603, 1601, -1, 1602, 1608, 1606, 1606, -1, 1604, 1602, 1603, -1, 1605, 1607, -1, 1607, 1607, 1605, 1603, 1606, 1604, 1609, 1608, 1610, 1606, 1606, 1607, 1604, 1605, 1610, 1608, 1609, -1, 1607, 1605, -1, 1606, 1611, -1, 1607, 1608, -1, 1608, 1608, 1606, 1607, 1611, 1609, 1608, 1607, 1608, -1, 1610, 1609, 1609, 1608, -1, 1609, 1611, 1610][n])
0