1 7 2 79 3 97 4 797 5 977 6 997 7 77797 8 77977 9 77999 10 79777 11 79979 12 79997 13 79999 14 97777 15 777977 16 777979 17 779797 18 797977 19 799979 20 799999 21 999979 22 7777997 23 7779979 24 7779997 25 7797799 26 7797997 27 7799797 28 7799999 29 7977779 30 7977797 31 7977799 32 7977997 33 7979779 34 7997777 35 9777797 36 9777979 37 9779779 38 9779797 39 9779977 40 9797999 41 9799997 42 9977777 43 9977797 44 9977977 45 9977999 46 9979777 47 9997777 48 9997997 49 77779799 50 77977799 51 77977979 52 77979779 53 77997779 54 77997977 55 77997979 56 79779779 57 79779797 58 79779979 59 79797997 60 79799777 61 79977977 62 79979777 63 79997977 64 97777997 65 97779779 66 97797977 67 97799777 68 99777779 69 99779777 70 99977797 71 99979777 72 777777799 73 777777997 74 777799777 75 777799999 76 777977779 77 777979799 78 777979997 79 777997999 80 777999797 81 779977777 82 779979799 83 779979997 84 779997797 85 779999977 86 779999999 87 797779799 88 797797799 89 797797999 90 797799997 91 797977799 92 797979799 93 797979997 94 797997979 95 797999779 96 797999999 97 799799977 98 799977979 99 799979777 100 799979977 101 799997797 102 799999799 103 799999999 104 977797979 105 977799997 106 977977799 107 977977999 108 977979979 109 977979997 110 977999777 111 977999779 112 977999797 113 979777999 114 979779979 115 979797779 116 979797979 117 979799797 118 979977799 119 979979797 120 979979999 121 979999997 122 997779799 123 997977779 124 997997779 125 997997999 126 997999777 127 999779779 128 999779999 129 999797797 130 999799979 131 999999797 132 7777779799 133 7777799977 134 7777977797 135 7777997797 136 7777997999 137 7779777799 138 7779777997 139 7779779779 140 7779799799 141 7779799997 142 7779979979 143 7779997999 144 7797777979 145 7797799979 146 7797979799 147 7797999799 148 7799797777 149 7799797799 150 7977779779 151 7977799799 152 7977977797 153 7977979777 154 7979777777 155 7979777977 156 7979797999 157 7979799977 158 7979979779 159 7979979797 160 7979979977 161 7979997797 162 7979997799 163 7979999999 164 7997797999 165 7997799977 166 7997979779 167 7997997977 168 7999777777 169 7999777997 170 7999777999 171 7999779797 172 7999779979 173 7999797977 174 7999797979 175 7999797997 176 7999799779 177 7999799999 178 7999977779 179 9777777799 180 9777797999 181 9777799777 182 9777799979 183 9777977977 184 9777979999 185 9777997979 186 9779799979 187 9779977997 188 9779999777 189 9797779777 190 9797799779 191 9797799797 192 9797977799 193 9797997977 194 9797999797 195 9799777777 196 9799777979 197 9799777997 198 9799797977 199 9799799797 200 9799977779 201 9799999997 202 9977779979 203 9977779997 204 9977799977 205 9977977979 206 9977979797 207 9977979799 208 9979777777 209 9979777999 210 9979797797 211 9979799779 212 9979997977 213 9997797779 214 9997979977 215 9997997797 216 9997999799 217 9997999997 218 9999777797 219 9999797779 220 77777779979 221 77777797777 222 77777797997 223 77777799977 224 77777799997 225 77777979779 226 77777997779 227 77779779997 228 77779997777 229 77779999799 230 77797777979 231 77797797797 232 77797797977 233 77797977977 234 77797977997 235 77797979999 236 77797999999 237 77799777779 238 77799777799 239 77799777977 240 77799779779 241 77799799999 242 77799977797 243 77799979799 244 77799999779 245 77799999799 246 77799999997 247 77977779797 248 77977797797 249 77977797979 250 77977799777 251 77977799797 252 77979777797 253 77979799999 254 77979979997 255 77979999997 256 77997799799 257 77997979777 258 77997997997 259 77997997999 260 77997999977 261 77999979779 262 77999979797 263 77999999999 264 79777777777 265 79777779779 266 79777779797 267 79777797779 268 79777797977 269 79777799779 270 79777799999 271 79777977977 272 79777979777 273 79777999799 274 79779777997 275 79779779977 276 79779977777 277 79779977999 278 79779999979 279 79797777977 280 79797777979 281 79797779779 282 79797797797 283 79797799979 284 79797799997 285 79797977797 286 79797979777 287 79797997777 288 79797997999 289 79797999997 290 79799797997 291 79799797999 292 79799977799 293 79799977997 294 79799979799 295 79799997779 296 79977777797 297 79977777799 298 79977977977 299 79977977999 300 79977997997 301 79979779777 302 79979799797 303 79979799979 304 79979979797 305 79979979977 306 79979999797 307 79979999999 308 79997777779 309 79997779999 310 79997997799 311 79997999777 312 79999777997 313 79999779799 314 79999797797 315 79999799797 316 79999799977 317 79999977797 318 79999979777 319 79999997797 320 79999999979 321 79999999999 322 97777779779 323 97777779797 324 97777799797 325 97777979777 326 97777999999 327 97779797779 328 97779977797 329 97779979799 330 97779999979 331 97779999997 332 97797777977 333 97797779797 334 97797977779 335 97797977999 336 97797979999 337 97797997777 338 97797999799 339 97797999977 340 97797999979 341 97799779799 342 97799799997 343 97799997979 344 97799999777 345 97799999797 346 97977979999 347 97979779979 348 97979779999 349 97979799779 350 97997777797 351 97997797999 352 97997977999 353 97997979797 354 97997979977 355 97997997997 356 97999779979 357 97999797997 358 97999799999 359 97999977997 360 97999979797 361 99777779779 362 99777799777 363 99777799799 364 99777799999 365 99777977777 366 99777997799 367 99777999779 368 99777999799 369 99779797979 370 99779977777 371 99779979779 372 99779999797 373 99779999999 374 99797777777 375 99797777797 376 99797799797 377 99797799979 378 99797979979 379 99797997779 380 99797997797 381 99797997799 382 99797997977 383 99797997979 384 99797997997 385 99797999779 386 99799777799 387 99799777997 388 99799779977 389 99799799777 390 99799799999 391 99799977779 392 99799977799 393 99799979977 394 99799979999 395 99799999997 396 99977779777 397 99977799979 398 99977977997 399 99977997797 400 99977999977 401 99979779799 402 99979779997 403 99979977997 404 99979979779 405 99979979797 406 99997797799 407 99997797979 408 99997797997 409 99997799977 410 99997799999 411 99997977977 412 99997997797 413 99997997999 414 99997999979 415 99999779777 416 99999797797 417 99999797999 418 99999799997 419 99999979999 420 99999999977 421 777777779777 422 777777797779 423 777777797999 424 777777979799 425 777779799799 426 777779997779 427 777779997977 428 777779997997 429 777797779777 430 777797799797 431 777797799799 432 777797977997 433 777797997997 434 777799779797 435 777799779979 436 777799799977 437 777799999777 438 777977779979 439 777977797979 440 777977799799 441 777977977999 442 777977979799 443 777979779779 444 777979797997 445 777979977979 446 777979979797 447 777979999777 448 777997779997 449 777997799797 450 777997977797 451 777997977979 452 777997999979 453 777999797777 454 777999997777 455 777999999779 456 779777977777 457 779777979779 458 779777979977 459 779777979979 460 779777997797 461 779777997979 462 779779777999 463 779779779797 464 779779799999 465 779779997797 466 779797777799 467 779797779977 468 779797797799 469 779797979797 470 779797979999 471 779797997977 472 779797999999 473 779799777997 474 779799779779 475 779799797977 476 779799799799 477 779799977779 478 779799979999 479 779977799999 480 779977979777 481 779977997797 482 779979797777 483 779979797999 484 779979977977 485 779979979979 486 779979997777 487 779979999779 488 779979999797 489 779997779777 490 779997797779 491 779997979979 492 779997997777 493 779997997979 494 779997997997 495 779999777779 496 779999777797 497 779999797979 498 779999799979 499 779999979779 500 779999997977 501 797777777977 502 797777797799 503 797777799979 504 797777979979 505 797779797977 506 797779977979 507 797779997779 508 797779997797 509 797797777979 510 797797797997 511 797797997797 512 797799779797 513 797977777997 514 797977779779 515 797977779997 516 797977979999 517 797977997797 518 797977999979 519 797979777797 520 797979777979 521 797979779777 522 797979797977 523 797979977797 524 797979979799 525 797979997777 526 797979997979 527 797997777977 528 797997777979 529 797997779797 530 797997979777 531 797997979979 532 797997979997 533 797997999797 534 797999777777 535 797999777797 536 797999797799 537 797999799977 538 797999799979 539 797999979779 540 797999979797 541 797999979977 542 797999997997 543 797999999777 544 799777799797 545 799777977797 546 799777977799 547 799777979779 548 799777979999 549 799777997779 550 799779777779 551 799779779779 552 799779979799 553 799779997999 554 799779999779 555 799779999979 556 799797779777 557 799797779999 558 799797797779 559 799797799979 560 799797979777 561 799797997979 562 799797997997 563 799797999799 564 799797999977 565 799799777977 566 799799797999 567 799799799977 568 799799977777 569 799799977799 570 799799977997 571 799799999777 572 799977777779 573 799977797797 574 799977977999 575 799977979979 576 799977999797 577 799979797997 578 799979977799 579 799979979779 580 799979997779 581 799979997797 582 799979997977 583 799979997979 584 799979999977 585 799997779799 586 799997979799 587 799997979997 588 799997997797 589 799999779977 590 799999797799 591 799999797977 592 799999977797 593 799999997977 594 977777779777 595 977777797999 596 977777799997 597 977777979799 598 977777979979 599 977777997797 600 977777997979 601 977779797977 602 977779797979 603 977779797997 604 977779799779 605 977779799999 606 977779979797 607 977779997977 608 977797779799 609 977797779977 610 977797779979 611 977797797979 612 977797799777 613 977797979999 614 977797999979 615 977799799799 616 977799799997 617 977799979997 618 977799999977 619 977977779797 620 977977779997 621 977977799797 622 977977977799 623 977977979779 624 977977999799 625 977979777799 626 977979779999 627 977979979997 628 977979997979 629 977979999779 630 977997777797 631 977997797779 632 977997799799 633 977997799997 634 977997977779 635 977997979979 636 977997979999 637 977997999779 638 977997999799 639 977999777779 640 977999777977 641 977999797777 642 977999799797 643 977999799979 644 977999977777 645 977999979797 646 977999979799 647 979777799999 648 979777977797 649 979777977977 650 979777979977 651 979777997777 652 979777997999 653 979777999999 654 979779777799 655 979779777997 656 979779779777 657 979779779779 658 979779779999 659 979779797977 660 979779977977 661 979779979777 662 979779999799 663 979797777997 664 979797779777 665 979797799777 666 979797977999 667 979799777777 668 979799779979 669 979799797799 670 979799797979 671 979799797997 672 979799977979 673 979799997797 674 979977797779 675 979977797999 676 979977979979 677 979977997799 678 979979797777 679 979979797997 680 979979799779 681 979979799797 682 979979979997 683 979997777977 684 979997979797 685 979997979979 686 979999977797 687 979999977997 688 979999999777 689 997777797977 690 997777977797 691 997777979977 692 997777979999 693 997777997977 694 997777997999 695 997779777997 696 997779797779 697 997779799979 698 997779977797 699 997779979799 700 997779979997 701 997779997777 702 997779997979 703 997797777797 704 997797777799 705 997797779777 706 997797779779 707 997797797977 708 997797797999 709 997797977797 710 997797979799 711 997797979979 712 997797997997 713 997797999977 714 997799779997 715 997799797777 716 997799977799 717 997799979779 718 997799979997 719 997799997797 720 997977797779 721 997977799799 722 997977999779 723 997979777779 724 997979779777 725 997979977997 726 997979977999 727 997979979977 728 997979997997 729 997997777797 730 997997799979 731 997997977997 732 997997997797 733 997997999777 734 997999779979 735 997999797979 736 997999799777 737 997999799779 738 997999977797 739 997999979797 740 999777777797 741 999777777799 742 999777779779 743 999777779977 744 999777797797 745 999777799799 746 999777977797 747 999777977999 748 999777997997 749 999779777999 750 999779779979 751 999779797799 752 999779797997 753 999779799979 754 999779997977 755 999779999797 756 999797797777 757 999797799997 758 999797997797 759 999797999779 760 999799797779 761 999799979977 762 999799979999 763 999977777797 764 999977779979 765 999977799797 766 999977979799 767 999977979977 768 999977979997 769 999977997779 770 999979777999 771 999979779977 772 999979979777 773 999979979797 774 999979997977 775 999997797979 776 999997799797 777 999997977977 778 999997977997 779 999997979779 780 999997999799 781 999999777977 782 999999977797 783 999999979997 784 7777777779977 785 7777777799777 786 7777777977797 787 7777777999777 788 7777779977999 789 7777779979799 790 7777779979999 791 7777779997979 792 7777779999797 793 7777797777979 794 7777797779797 795 7777797797797 796 7777797797999 797 7777797799777 798 7777797799979 799 7777797979979 800 7777797997799 801 7777797997979 802 7777797997997 803 7777799797799 804 7777799799797 805 7777799799799 806 7777799799977 807 7777799977777 808 7777799977979 809 7777799979997 810 7777799999999 811 7777977779977 812 7777977977779 813 7777979797979 814 7777979797997 815 7777979977979 816 7777979979977 817 7777979979997 818 7777979997779 819 7777997779999 820 7777997797799 821 7777997799779 822 7777997977777 823 7777997977999 824 7777997979799 825 7777997997997 826 7777999977779 827 7777999979999 828 7779777777797 829 7779777777977 830 7779777799979 831 7779777799999 832 7779777977779 833 7779777977977 834 7779777979777 835 7779777999997 836 7779779779979 837 7779797799979 838 7779797977979 839 7779797997799 840 7779797997977 841 7779797997997 842 7779797999777 843 7779799779977 844 7779799799977 845 7779799997777 846 7779977779799 847 7779977779997 848 7779977797777 849 7779977977777 850 7779977977799 851 7779977979797 852 7779977979799 853 7779977999779 854 7779979779779 855 7779979779977 856 7779979797979 857 7779979799797 858 7779979979777 859 7779997777777 860 7779997797779 861 7779997797977 862 7779997997797 863 7779997997999 864 7779997999799 865 7779999779779 866 7779999797797 867 7779999999977 868 7797777777997 869 7797777779777 870 7797777779977 871 7797777979997 872 7797779777779 873 7797779777797 874 7797779797799 875 7797779997779 876 7797779999797 877 7797797779997 878 7797797779999 879 7797797977979 880 7797797997797 881 7797797999777 882 7797799797779 883 7797799979779 884 7797977777977 885 7797977777999 886 7797977797979 887 7797977797997 888 7797977799797 889 7797977979797 890 7797979777979 891 7797979777997 892 7797979777999 893 7797979779797 894 7797979779977 895 7797979779979 896 7797979797799 897 7797979799999 898 7797979997779 899 7797979997999 900 7797997797979 901 7797997977997 902 7797999777977 903 7797999779777 904 7797999779797 905 7797999977777 906 7797999997999 907 7797999999997 908 7799777977799 909 7799777979779 910 7799777999977 911 7799779999997 912 7799797777999 913 7799797779779 914 7799797799779 915 7799797799797 916 7799797977977 917 7799797979999 918 7799797997777 919 7799799977797 920 7799799997799 921 7799799999977 922 7799977797979 923 7799977979797 924 7799977999997 925 7799977999999 926 7799979797999 927 7799979799979 928 7799979799999 929 7799997777779 930 7799997799999 931 7799997977777 932 7799997977977 933 7799997979799 934 7799999779799 935 7799999979799 936 7799999999977 937 7977777797999 938 7977777977977 939 7977777997999 940 7977779777999 941 7977779779997 942 7977779799799 943 7977797777777 944 7977797779997 945 7977797797777 946 7977797797979 947 7977797799997 948 7977797979797 949 7977797979979 950 7977797997797 951 7977799779979 952 7977799799777 953 7977799799797 954 7977799997977 955 7977977977999 956 7977977999779 957 7977979777979 958 7977979779779 959 7977979797979 960 7977979999999 961 7977997799999 962 7977999779797 963 7977999779977 964 7977999779999 965 7977999979799 966 7977999997999 967 7979777779777 968 7979777979997 969 7979777999797 970 7979779777997 971 7979779779779 972 7979779977979 973 7979779997779 974 7979779997797 975 7979797779797 976 7979797779799 977 7979797779977 978 7979797799999 979 7979797979977 980 7979797997797 981 7979799799799 982 7979799799999 983 7979799977999 984 7979799979997 985 7979799997979 986 7979977777979 987 7979977799779 988 7979977799999 989 7979977977799 990 7979977977997 991 7979977979999 992 7979979779999 993 7979979977797 994 7979979977999 995 7979979997799 996 7979979999779 997 7979997779777 998 7979997799979 999 7979997979777 1000 7979997997999