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