Problem:


Score : 300 points

Problem Statement

You are given an integer N. Among the integers between 1 and N (inclusive), how many Shichi-Go-San numbers (literally "Seven-Five-Three numbers") are there?

Here, a Shichi-Go-San number is a positive integer that satisfies the following condition:

When the number is written in base ten, each of the digits 7, 5 and 3 appears at least once, and the other digits never appear.

Constraints

1 \leq N < 10^9

N is an integer.

Input

Input is given from Standard Input in the following format:

N

Output

Print the number of the Shichi-Go-San numbers between 1 and N (inclusive).

Sample Input 1

575

Sample Output 1

4

There are four Shichi-Go-San numbers not greater than 575: 357, 375, 537 and 573.

Sample Input 2

3600

Sample Output 2

13

There are 13 Shichi-Go-San numbers not greater than 3600: the above four numbers, 735, 753, 3357, 3375, 3537, 3557, 3573, 3575 and 3577.

Sample Input 3

999999999

Sample Output 3

26484



Sample input:
575


Sample output:
4

Submission status: Wrong Answer

Solution code:
import bisect
N = int(input())
lst = [357, 375, 537, 573, 735, 753, 3357, 3375, 3537, 3557, 3573, 3575, 3577, 3735, 3753, 3755, 3757, 3775, 5337, 5357,
       5373, 5375, 5377, 5537, 5573, 5733, 5735, 5737, 5753, 5773, 7335, 7353, 7355, 7357, 7375, 7533, 7535, 7537, 7553,
       7573, 7735, 7753, 33357, 33375, 33537, 33557, 33573, 33575, 33577, 33735, 33753, 33755, 33757, 33775, 35337,
       35357, 35373, 35375, 35377, 35537, 35557, 35573, 35575, 35577, 35733, 35735, 35737, 35753, 35755, 35757, 35773,
       35775, 35777, 37335, 37353, 37355, 37357, 37375, 37533, 37535, 37537, 37553, 37555, 37557, 37573, 37575, 37577,
       37735, 37753, 37755, 37757, 37775, 53337, 53357, 53373, 53375, 53377, 53537, 53557, 53573, 53575, 53577, 53733,
       53735, 53737, 53753, 53755, 53757, 53773, 53775, 53777, 55337, 55357, 55373, 55375, 55377, 55537, 55573, 55733,
       55735, 55737, 55753, 55773, 57333, 57335, 57337, 57353, 57355, 57357, 57373, 57375, 57377, 57533, 57535, 57537,
       57553, 57573, 57733, 57735, 57737, 57753, 57773, 73335, 73353, 73355, 73357, 73375, 73533, 73535, 73537, 73553,
       73555, 73557, 73573, 73575, 73577, 73735, 73753, 73755, 73757, 73775, 75333, 75335, 75337, 75353, 75355, 75357,
       75373, 75375, 75377, 75533, 75535, 75537, 75553, 75573, 75733, 75735, 75737, 75753, 75773, 77335, 77353, 77355,
       77357, 77375, 77533, 77535, 77537, 77553, 77573, 77735, 77753, 333357, 333375, 333537, 333557, 333573, 333575,
       333577, 333735, 333753, 333755, 333757, 333775, 335337, 335357, 335373, 335375, 335377, 335537, 335557, 335573,
       335575, 335577, 335733, 335735, 335737, 335753, 335755, 335757, 335773, 335775, 335777, 337335, 337353, 337355,
       337357, 337375, 337533, 337535, 337537, 337553, 337555, 337557, 337573, 337575, 337577, 337735, 337753, 337755,
       337757, 337775, 353337, 353357, 353373, 353375, 353377, 353537, 353557, 353573, 353575, 353577, 353733, 353735,
       353737, 353753, 353755, 353757, 353773, 353775, 353777, 355337, 355357, 355373, 355375, 355377, 355537, 355557,
       355573, 355575, 355577, 355733, 355735, 355737, 355753, 355755, 355757, 355773, 355775, 355777, 357333, 357335,
       357337, 357353, 357355, 357357, 357373, 357375, 357377, 357533, 357535, 357537, 357553, 357555, 357557, 357573,
       357575, 357577, 357733, 357735, 357737, 357753, 357755, 357757, 357773, 357775, 357777, 373335, 373353, 373355,
       373357, 373375, 373533, 373535, 373537, 373553, 373555, 373557, 373573, 373575, 373577, 373735, 373753, 373755,
       373757, 373775, 375333, 375335, 375337, 375353, 375355, 375357, 375373, 375375, 375377, 375533, 375535, 375537,
       375553, 375555, 375557, 375573, 375575, 375577, 375733, 375735, 375737, 375753, 375755, 375757, 375773, 375775,
       375777, 377335, 377353, 377355, 377357, 377375, 377533, 377535, 377537, 377553, 377555, 377557, 377573, 377575,
       377577, 377735, 377753, 377755, 377757, 377775, 533337, 533357, 533373, 533375, 533377, 533537, 533557, 533573,
       533575, 533577, 533733, 533735, 533737, 533753, 533755, 533757, 533773, 533775, 533777, 535337, 535357, 535373,
       535375, 535377, 535537, 535557, 535573, 535575, 535577, 535733, 535735, 535737, 535753, 535755, 535757, 535773,
       535775, 535777, 537333, 537335, 537337, 537353, 537355, 537357, 537373, 537375, 537377, 537533, 537535, 537537,
       537553, 537555, 537557, 537573, 537575, 537577, 537733, 537735, 537737, 537753, 537755, 537757, 537773, 537775,
       537777, 553337, 553357, 553373, 553375, 553377, 553537, 553557, 553573, 553575, 553577, 553733, 553735, 553737,
       553753, 553755, 553757, 553773, 553775, 553777, 555337, 555357, 555373, 555375, 555377, 555537, 555573, 555733,
       555735, 555737, 555753, 555773, 557333, 557335, 557337, 557353, 557355, 557357, 557373, 557375, 557377, 557533,
       557535, 557537, 557553, 557573, 557733, 557735, 557737, 557753, 557773, 573333, 573335, 573337, 573353, 573355,
       573357, 573373, 573375, 573377, 573533, 573535, 573537, 573553, 573555, 573557, 573573, 573575, 573577, 573733,
       573735, 573737, 573753, 573755, 573757, 573773, 573775, 573777, 575333, 575335, 575337, 575353, 575355, 575357,
       575373, 575375, 575377, 575533, 575535, 575537, 575553, 575573, 575733, 575735, 575737, 575753, 575773, 577333,
       577335, 577337, 577353, 577355, 577357, 577373, 577375, 577377, 577533, 577535, 577537, 577553, 577573, 577733,
       577735, 577737, 577753, 577773, 733335, 733353, 733355, 733357, 733375, 733533, 733535, 733537, 733553, 733555,
       733557, 733573, 733575, 733577, 733735, 733753, 733755, 733757, 733775, 735333, 735335, 735337, 735353, 735355,
       735357, 735373, 735375, 735377, 735533, 735535, 735537, 735553, 735555, 735557, 735573, 735575, 735577, 735733,
       735735, 735737, 735753, 735755, 735757, 735773, 735775, 735777, 737335, 737353, 737355, 737357, 737375, 737533,
       737535, 737537, 737553, 737555, 737557, 737573, 737575, 737577, 737735, 737753, 737755, 737757, 737775, 753333,
       753335, 753337, 753353, 753355, 753357, 753373, 753375, 753377, 753533, 753535, 753537, 753553, 753555, 753557,
       753573, 753575, 753577, 753733, 753735, 753737, 753753, 753755, 753757, 753773, 753775, 753777, 755333, 755335,
       755337, 755353, 755355, 755357, 755373, 755375, 755377, 755533, 755535, 755537, 755553, 755573, 755733, 755735,
       755737, 755753, 755773, 757333, 757335, 757337, 757353, 757355, 757357, 757373, 757375, 757377, 757533, 757535,
       757537, 757553, 757573, 757733, 757735, 757737, 757753, 757773, 773335, 773353, 773355, 773357, 773375, 773533,
       773535, 773537, 773553, 773555, 773557, 773573, 773575, 773577, 773735, 773753, 773755, 773757, 773775, 775333,
       775335, 775337, 775353, 775355, 775357, 775373, 775375, 775377, 775533, 775535, 775537, 775553, 775573, 775733,
       775735, 775737, 775753, 775773, 777335, 777353, 777355, 777357, 777375, 777533, 777535, 777537, 777553, 777573,
       777735, 777753, 3333357, 3333375, 3333537, 3333557, 3333573, 3333575, 3333577, 3333735, 3333753, 3333755,
       3333757, 3333775, 3335337, 3335357, 3335373, 3335375, 3335377, 3335537, 3335557, 3335573, 3335575, 3335577,
       3335733, 3335735, 3335737, 3335753, 3335755, 3335757, 3335773, 3335775, 3335777, 3337335, 3337353, 3337355,
       3337357, 3337375, 3337533, 3337535, 3337537, 3337553, 3337555, 3337557, 3337573, 3337575, 3337577, 3337735,
       3337753, 3337755, 3337757, 3337775, 3353337, 3353357, 3353373, 3353375, 3353377, 3353537, 3353557, 3353573,
       3353575, 3353577, 3353733, 3353735, 3353737, 3353753, 3353755, 3353757, 3353773, 3353775, 3353777, 3355337,
       3355357, 3355373, 3355375, 3355377, 3355537, 3355557, 3355573, 3355575, 3355577, 3355733, 3355735, 3355737,
       3355753, 3355755, 3355757, 3355773, 3355775, 3355777, 3357333, 3357335, 3357337, 3357353, 3357355, 3357357,
       3357373, 3357375, 3357377, 3357533, 3357535, 3357537, 3357553, 3357555, 3357557, 3357573, 3357575, 3357577,
       3357733, 3357735, 3357737, 3357753, 3357755, 3357757, 3357773, 3357775, 3357777, 3373335, 3373353, 3373355,
       3373357, 3373375, 3373533, 3373535, 3373537, 3373553, 3373555, 3373557, 3373573, 3373575, 3373577, 3373735,
       3373753, 3373755, 3373757, 3373775, 3375333, 3375335, 3375337, 3375353, 3375355, 3375357, 3375373, 3375375,
       3375377, 3375533, 3375535, 3375537, 3375553, 3375555, 3375557, 3375573, 3375575, 3375577, 3375733, 3375735,
       3375737, 3375753, 3375755, 3375757, 3375773, 3375775, 3375777, 3377335, 3377353, 3377355, 3377357, 3377375,
       3377533, 3377535, 3377537, 3377553, 3377555, 3377557, 3377573, 3377575, 3377577, 3377735, 3377753, 3377755,
       3377757, 3377775, 3533337, 3533357, 3533373, 3533375, 3533377, 3533537, 3533557, 3533573, 3533575, 3533577,
       3533733, 3533735, 3533737, 3533753, 3533755, 3533757, 3533773, 3533775, 3533777, 3535337, 3535357, 3535373,
       3535375, 3535377, 3535537, 3535557, 3535573, 3535575, 3535577, 3535733, 3535735, 3535737, 3535753, 3535755,
       3535757, 3535773, 3535775, 3535777, 3537333, 3537335, 3537337, 3537353, 3537355, 3537357, 3537373, 3537375,
       3537377, 3537533, 3537535, 3537537, 3537553, 3537555, 3537557, 3537573, 3537575, 3537577, 3537733, 3537735,
       3537737, 3537753, 3537755, 3537757, 3537773, 3537775, 3537777, 3553337, 3553357, 3553373, 3553375, 3553377,
       3553537, 3553557, 3553573, 3553575, 3553577, 3553733, 3553735, 3553737, 3553753, 3553755, 3553757, 3553773,
       3553775, 3553777, 3555337, 3555357, 3555373, 3555375, 3555377, 3555537, 3555557, 3555573, 3555575, 3555577,
       3555733, 3555735, 3555737, 3555753, 3555755, 3555757, 3555773, 3555775, 3555777, 3557333, 3557335, 3557337,
       3557353, 3557355, 3557357, 3557373, 3557375, 3557377, 3557533, 3557535, 3557537, 3557553, 3557555, 3557557,
       3557573, 3557575, 3557577, 3557733, 3557735, 3557737, 3557753, 3557755, 3557757, 3557773, 3557775, 3557777,
       3573333, 3573335, 3573337, 3573353, 3573355, 3573357, 3573373, 3573375, 3573377, 3573533, 3573535, 3573537,
       3573553, 3573555, 3573557, 3573573, 3573575, 3573577, 3573733, 3573735, 3573737, 3573753, 3573755, 3573757,
       3573773, 3573775, 3573777, 3575333, 3575335, 3575337, 3575353, 3575355, 3575357, 3575373, 3575375, 3575377,
       3575533, 3575535, 3575537, 3575553, 3575555, 3575557, 3575573, 3575575, 3575577, 3575733, 3575735, 3575737,
       3575753, 3575755, 3575757, 3575773, 3575775, 3575777, 3577333, 3577335, 3577337, 3577353, 3577355, 3577357,
       3577373, 3577375, 3577377, 3577533, 3577535, 3577537, 3577553, 3577555, 3577557, 3577573, 3577575, 3577577,
       3577733, 3577735, 3577737, 3577753, 3577755, 3577757, 3577773, 3577775, 3577777, 3733335, 3733353, 3733355,
       3733357, 3733375, 3733533, 3733535, 3733537, 3733553, 3733555, 3733557, 3733573, 3733575, 3733577, 3733735,
       3733753, 3733755, 3733757, 3733775, 3735333, 3735335, 3735337, 3735353, 3735355, 3735357, 3735373, 3735375,
       3735377, 3735533, 3735535, 3735537, 3735553, 3735555, 3735557, 3735573, 3735575, 3735577, 3735733, 3735735,
       3735737, 3735753, 3735755, 3735757, 3735773, 3735775, 3735777, 3737335, 3737353, 3737355, 3737357, 3737375,
       3737533, 3737535, 3737537, 3737553, 3737555, 3737557, 3737573, 3737575, 3737577, 3737735, 3737753, 3737755,
       3737757, 3737775, 3753333, 3753335, 3753337, 3753353, 3753355, 3753357, 3753373, 3753375, 3753377, 3753533,
       3753535, 3753537, 3753553, 3753555, 3753557, 3753573, 3753575, 3753577, 3753733, 3753735, 3753737, 3753753,
       3753755, 3753757, 3753773, 3753775, 3753777, 3755333, 3755335, 3755337, 3755353, 3755355, 3755357, 3755373,
       3755375, 3755377, 3755533, 3755535, 3755537, 3755553, 3755555, 3755557, 3755573, 3755575, 3755577, 3755733,
       3755735, 3755737, 3755753, 3755755, 3755757, 3755773, 3755775, 3755777, 3757333, 3757335, 3757337, 3757353,
       3757355, 3757357, 3757373, 3757375, 3757377, 3757533, 3757535, 3757537, 3757553, 3757555, 3757557, 3757573,
       3757575, 3757577, 3757733, 3757735, 3757737, 3757753, 3757755, 3757757, 3757773, 3757775, 3757777, 3773335,
       3773353, 3773355, 3773357, 3773375, 3773533, 3773535, 3773537, 3773553, 3773555, 3773557, 3773573, 3773575,
       3773577, 3773735, 3773753, 3773755, 3773757, 3773775, 3775333, 3775335, 3775337, 3775353, 3775355, 3775357,
       3775373, 3775375, 3775377, 3775533, 3775535, 3775537, 3775553, 3775555, 3775557, 3775573, 3775575, 3775577,
       3775733, 3775735, 3775737, 3775753, 3775755, 3775757, 3775773, 3775775, 3775777, 3777335, 3777353, 3777355,
       3777357, 3777375, 3777533, 3777535, 3777537, 3777553, 3777555, 3777557, 3777573, 3777575, 3777577, 3777735,
       3777753, 3777755, 3777757, 3777775, 5333337, 5333357, 5333373, 5333375, 5333377, 5333537, 5333557, 5333573,
       5333575, 5333577, 5333733, 5333735, 5333737, 5333753, 5333755, 5333757, 5333773, 5333775, 5333777, 5335337,
       5335357, 5335373, 5335375, 5335377, 5335537, 5335557, 5335573, 5335575, 5335577, 5335733, 5335735, 5335737,
       5335753, 5335755, 5335757, 5335773, 5335775, 5335777, 5337333, 5337335, 5337337, 5337353, 5337355, 5337357,
       5337373, 5337375, 5337377, 5337533, 5337535, 5337537, 5337553, 5337555, 5337557, 5337573, 5337575, 5337577,
       5337733, 5337735, 5337737, 5337753, 5337755, 5337757, 5337773, 5337775, 5337777, 5353337, 5353357, 5353373,
       5353375, 5353377, 5353537, 5353557, 5353573, 5353575, 5353577, 5353733, 5353735, 5353737, 5353753, 5353755,
       5353757, 5353773, 5353775, 5353777, 5355337, 5355357, 5355373, 5355375, 5355377, 5355537, 5355557, 5355573,
       5355575, 5355577, 5355733, 5355735, 5355737, 5355753, 5355755, 5355757, 5355773, 5355775, 5355777, 5357333,
       5357335, 5357337, 5357353, 5357355, 5357357, 5357373, 5357375, 5357377, 5357533, 5357535, 5357537, 5357553,
       5357555, 5357557, 5357573, 5357575, 5357577, 5357733, 5357735, 5357737, 5357753, 5357755, 5357757, 5357773,
       5357775, 5357777, 5373333, 5373335, 5373337, 5373353, 5373355, 5373357, 5373373, 5373375, 5373377, 5373533,
       5373535, 5373537, 5373553, 5373555, 5373557, 5373573, 5373575, 5373577, 5373733, 5373735, 5373737, 5373753,
       5373755, 5373757, 5373773, 5373775, 5373777, 5375333, 5375335, 5375337, 5375353, 5375355, 5375357, 5375373,
       5375375, 5375377, 5375533, 5375535, 5375537, 5375553, 5375555, 5375557, 5375573, 5375575, 5375577, 5375733,
       5375735, 5375737, 5375753, 5375755, 5375757, 5375773, 5375775, 5375777, 5377333, 5377335, 5377337, 5377353,
       5377355, 5377357, 5377373, 5377375, 5377377, 5377533, 5377535, 5377537, 5377553, 5377555, 5377557, 5377573,
       5377575, 5377577, 5377733, 5377735, 5377737, 5377753, 5377755, 5377757, 5377773, 5377775, 5377777, 5533337,
       5533357, 5533373, 5533375, 5533377, 5533537, 5533557, 5533573, 5533575, 5533577, 5533733, 5533735, 5533737,
       5533753, 5533755, 5533757, 5533773, 5533775, 5533777, 5535337, 5535357, 5535373, 5535375, 5535377, 5535537,
       5535557, 5535573, 5535575, 5535577, 5535733, 5535735, 5535737, 5535753, 5535755, 5535757, 5535773, 5535775,
       5535777, 5537333, 5537335, 5537337, 5537353, 5537355, 5537357, 5537373, 5537375, 5537377, 5537533, 5537535,
       5537537, 5537553, 5537555, 5537557, 5537573, 5537575, 5537577, 5537733, 5537735, 5537737, 5537753, 5537755,
       5537757, 5537773, 5537775, 5537777, 5553337, 5553357, 5553373, 5553375, 5553377, 5553537, 5553557, 5553573,
       5553575, 5553577, 5553733, 5553735, 5553737, 5553753, 5553755, 5553757, 5553773, 5553775, 5553777, 5555337,
       5555357, 5555373, 5555375, 5555377, 5555537, 5555573, 5555733, 5555735, 5555737, 5555753, 5555773, 5557333,
       5557335, 5557337, 5557353, 5557355, 5557357, 5557373, 5557375, 5557377, 5557533, 5557535, 5557537, 5557553,
       5557573, 5557733, 5557735, 5557737, 5557753, 5557773, 5573333, 5573335, 5573337, 5573353, 5573355, 5573357,
       5573373, 5573375, 5573377, 5573533, 5573535, 5573537, 5573553, 5573555, 5573557, 5573573, 5573575, 5573577,
       5573733, 5573735, 5573737, 5573753, 5573755, 5573757, 5573773, 5573775, 5573777, 5575333, 5575335, 5575337,
       5575353, 5575355, 5575357, 5575373, 5575375, 5575377, 5575533, 5575535, 5575537, 5575553, 5575573, 5575733,
       5575735, 5575737, 5575753, 5575773, 5577333, 5577335, 5577337, 5577353, 5577355, 5577357, 5577373, 5577375,
       5577377, 5577533, 5577535, 5577537, 5577553, 5577573, 5577733, 5577735, 5577737, 5577753, 5577773, 5733333,
       5733335, 5733337, 5733353, 5733355, 5733357, 5733373, 5733375, 5733377, 5733533, 5733535, 5733537, 5733553,
       5733555, 5733557, 5733573, 5733575, 5733577, 5733733, 5733735, 5733737, 5733753, 5733755, 5733757, 5733773,
       5733775, 5733777, 5735333, 5735335, 5735337, 5735353, 5735355, 5735357, 5735373, 5735375, 5735377, 5735533,
       5735535, 5735537, 5735553, 5735555, 5735557, 5735573, 5735575, 5735577, 5735733, 5735735, 5735737, 5735753,
       5735755, 5735757, 5735773, 5735775, 5735777, 5737333, 5737335, 5737337, 5737353, 5737355, 5737357, 5737373,
       5737375, 5737377, 5737533, 5737535, 5737537, 5737553, 5737555, 5737557, 5737573, 5737575, 5737577, 5737733,
       5737735, 5737737, 5737753, 5737755, 5737757, 5737773, 5737775, 5737777, 5753333, 5753335, 5753337, 5753353,
       5753355, 5753357, 5753373, 5753375, 5753377, 5753533, 5753535, 5753537, 5753553, 5753555, 5753557, 5753573,
       5753575, 5753577, 5753733, 5753735, 5753737, 5753753, 5753755, 5753757, 5753773, 5753775, 5753777, 5755333,
       5755335, 5755337, 5755353, 5755355, 5755357, 5755373, 5755375, 5755377, 5755533, 5755535, 5755537, 5755553,
       5755573, 5755733, 5755735, 5755737, 5755753, 5755773, 5757333, 5757335, 5757337, 5757353, 5757355, 5757357,
       5757373, 5757375, 5757377, 5757533, 5757535, 5757537, 5757553, 5757573, 5757733, 5757735, 5757737, 5757753,
       5757773, 5773333, 5773335, 5773337, 5773353, 5773355, 5773357, 5773373, 5773375, 5773377, 5773533, 5773535,
       5773537, 5773553, 5773555, 5773557, 5773573, 5773575, 5773577, 5773733, 5773735, 5773737, 5773753, 5773755,
       5773757, 5773773, 5773775, 5773777, 5775333, 5775335, 5775337, 5775353, 5775355, 5775357, 5775373, 5775375,
       5775377, 5775533, 5775535, 5775537, 5775553, 5775573, 5775733, 5775735, 5775737, 5775753, 5775773, 5777333,
       5777335, 5777337, 5777353, 5777355, 5777357, 5777373, 5777375, 5777377, 5777533, 5777535, 5777537, 5777553,
       5777573, 5777733, 5777735, 5777737, 5777753, 5777773, 7333335, 7333353, 7333355, 7333357, 7333375, 7333533,
       7333535, 7333537, 7333553, 7333555, 7333557, 7333573, 7333575, 7333577, 7333735, 7333753, 7333755, 7333757,
       7333775, 7335333, 7335335, 7335337, 7335353, 7335355, 7335357, 7335373, 7335375, 7335377, 7335533, 7335535,
       7335537, 7335553, 7335555, 7335557, 7335573, 7335575, 7335577, 7335733, 7335735, 7335737, 7335753, 7335755,
       7335757, 7335773, 7335775, 7335777, 7337335, 7337353, 7337355, 7337357, 7337375, 7337533, 7337535, 7337537,
       7337553, 7337555, 7337557, 7337573, 7337575, 7337577, 7337735, 7337753, 7337755, 7337757, 7337775, 7353333,
       7353335, 7353337, 7353353, 7353355, 7353357, 7353373, 7353375, 7353377, 7353533, 7353535, 7353537, 7353553,
       7353555, 7353557, 7353573, 7353575, 7353577, 7353733, 7353735, 7353737, 7353753, 7353755, 7353757, 7353773,
       7353775, 7353777, 7355333, 7355335, 7355337, 7355353, 7355355, 7355357, 7355373, 7355375, 7355377, 7355533,
       7355535, 7355537, 7355553, 7355555, 7355557, 7355573, 7355575, 7355577, 7355733, 7355735, 7355737, 7355753,
       7355755, 7355757, 7355773, 7355775, 7355777, 7357333, 7357335, 7357337, 7357353, 7357355, 7357357, 7357373,
       7357375, 7357377, 7357533, 7357535, 7357537, 7357553, 7357555, 7357557, 7357573, 7357575, 7357577, 7357733,
       7357735, 7357737, 7357753, 7357755, 7357757, 7357773, 7357775, 7357777, 7373335, 7373353, 7373355, 7373357,
       7373375, 7373533, 7373535, 7373537, 7373553, 7373555, 7373557, 7373573, 7373575, 7373577, 7373735, 7373753,
       7373755, 7373757, 7373775, 7375333, 7375335, 7375337, 7375353, 7375355, 7375357, 7375373, 7375375, 7375377,
       7375533, 7375535, 7375537, 7375553, 7375555, 7375557, 7375573, 7375575, 7375577, 7375733, 7375735, 7375737,
       7375753, 7375755, 7375757, 7375773, 7375775, 7375777, 7377335, 7377353, 7377355, 7377357, 7377375, 7377533,
       7377535, 7377537, 7377553, 7377555, 7377557, 7377573, 7377575, 7377577, 7377735, 7377753, 7377755, 7377757,
       7377775, 7533333, 7533335, 7533337, 7533353, 7533355, 7533357, 7533373, 7533375, 7533377, 7533533, 7533535,
       7533537, 7533553, 7533555, 7533557, 7533573, 7533575, 7533577, 7533733, 7533735, 7533737, 7533753, 7533755,
       7533757, 7533773, 7533775, 7533777, 7535333, 7535335, 7535337, 7535353, 7535355, 7535357, 7535373, 7535375,
       7535377, 7535533, 7535535, 7535537, 7535553, 7535555, 7535557, 7535573, 7535575, 7535577, 7535733, 7535735,
       7535737, 7535753, 7535755, 7535757, 7535773, 7535775, 7535777, 7537333, 7537335, 7537337, 7537353, 7537355,
       7537357, 7537373, 7537375, 7537377, 7537533, 7537535, 7537537, 7537553, 7537555, 7537557, 7537573, 7537575,
       7537577, 7537733, 7537735, 7537737, 7537753, 7537755, 7537757, 7537773, 7537775, 7537777, 7553333, 7553335,
       7553337, 7553353, 7553355, 7553357, 7553373, 7553375, 7553377, 7553533, 7553535, 7553537, 7553553, 7553555,
       7553557, 7553573, 7553575, 7553577, 7553733, 7553735, 7553737, 7553753, 7553755, 7553757, 7553773, 7553775,
       7553777, 7555333, 7555335, 7555337, 7555353, 7555355, 7555357, 7555373, 7555375, 7555377, 7555533, 7555535,
       7555537, 7555553, 7555573, 7555733, 7555735, 7555737, 7555753, 7555773, 7557333, 7557335, 7557337, 7557353,
       7557355, 7557357, 7557373, 7557375, 7557377, 7557533, 7557535, 7557537, 7557553, 7557573, 7557733, 7557735,
       7557737, 7557753, 7557773, 7573333, 7573335, 7573337, 7573353, 7573355, 7573357, 7573373, 7573375, 7573377,
       7573533, 7573535, 7573537, 7573553, 7573555, 7573557, 7573573, 7573575, 7573577, 7573733, 7573735, 7573737,
       7573753, 7573755, 7573757, 7573773, 7573775, 7573777, 7575333, 7575335, 7575337, 7575353, 7575355, 7575357,
       7575373, 7575375, 7575377, 7575533, 7575535, 7575537, 7575553, 7575573, 7575733, 7575735, 7575737, 7575753,
       7575773, 7577333, 7577335, 7577337, 7577353, 7577355, 7577357, 7577373, 7577375, 7577377, 7577533, 7577535,
       7577537, 7577553, 7577573, 7577733, 7577735, 7577737, 7577753, 7577773, 7733335, 7733353, 7733355, 7733357,
       7733375, 7733533, 7733535, 7733537, 7733553, 7733555, 7733557, 7733573, 7733575, 7733577, 7733735, 7733753,
       7733755, 7733757, 7733775, 7735333, 7735335, 7735337, 7735353, 7735355, 7735357, 7735373, 7735375, 7735377,
       7735533, 7735535, 7735537, 7735553, 7735555, 7735557, 7735573, 7735575, 7735577, 7735733, 7735735, 7735737,
       7735753, 7735755, 7735757, 7735773, 7735775, 7735777, 7737335, 7737353, 7737355, 7737357, 7737375, 7737533,
       7737535, 7737537, 7737553, 7737555, 7737557, 7737573, 7737575, 7737577, 7737735, 7737753, 7737755, 7737757,
       7737775, 7753333, 7753335, 7753337, 7753353, 7753355, 7753357, 7753373, 7753375, 7753377, 7753533, 7753535,
       7753537, 7753553, 7753555, 7753557, 7753573, 7753575, 7753577, 7753733, 7753735, 7753737, 7753753, 7753755,
       7753757, 7753773, 7753775, 7753777, 7755333, 7755335, 7755337, 7755353, 7755355, 7755357, 7755373, 7755375,
       7755377, 7755533, 7755535, 7755537, 7755553, 7755573, 7755733, 7755735, 7755737, 7755753, 7755773, 7757333,
       7757335, 7757337, 7757353, 7757355, 7757357, 7757373, 7757375, 7757377, 7757533, 7757535, 7757537, 7757553,
       7757573, 7757733, 7757735, 7757737, 7757753, 7757773, 7773335, 7773353, 7773355, 7773357, 7773375, 7773533,
       7773535, 7773537, 7773553, 7773555, 7773557, 7773573, 7773575, 7773577, 7773735, 7773753, 7773755, 7773757,
       7773775, 7775333, 7775335, 7775337, 7775353, 7775355, 7775357, 7775373, 7775375, 7775377, 7775533, 7775535,
       7775537, 7775553, 7775573, 7775733, 7775735, 7775737, 7775753, 7775773, 7777335, 7777353, 7777355, 7777357,
       7777375, 7777533, 7777535, 7777537, 7777553, 7777573, 7777735, 7777753, 33333357, 33333375, 33333537, 33333557,
       33333573, 33333575, 33333577, 33333735, 33333753, 33333755, 33333757, 33333775, 33335337, 33335357, 33335373,
       33335375, 33335377, 33335537, 33335557, 33335573, 33335575, 33335577, 33335733, 33335735, 33335737, 33335753,
       33335755, 33335757, 33335773, 33335775, 33335777, 33337335, 33337353, 33337355, 33337357, 33337375, 33337533,
       33337535, 33337537, 33337553, 33337555, 33337557, 33337573, 33337575, 33337577, 33337735, 33337753, 33337755,
       33337757, 33337775, 33353337, 33353357, 33353373, 33353375, 33353377, 33353537, 33353557, 33353573, 33353575,
       33353577, 33353733, 33353735, 33353737, 33353753, 33353755, 33353757, 33353773, 33353775, 33353777, 33355337,
       33355357, 33355373, 33355375, 33355377, 33355537, 33355557, 33355573, 33355575, 33355577, 33355733, 33355735,
       33355737, 33355753, 33355755, 33355757, 33355773, 33355775, 33355777, 33357333, 33357335, 33357337, 33357353,
       33357355, 33357357, 33357373, 33357375, 33357377, 33357533, 33357535, 33357537, 33357553, 33357555, 33357557,
       33357573, 33357575, 33357577, 33357733, 33357735, 33357737, 33357753, 33357755, 33357757, 33357773, 33357775,
       33357777, 33373335, 33373353, 33373355, 33373357, 33373375, 33373533, 33373535, 33373537, 33373553, 33373555,
       33373557, 33373573, 33373575, 33373577, 33373735, 33373753, 33373755, 33373757, 33373775, 33375333, 33375335,
       33375337, 33375353, 33375355, 33375357, 33375373, 33375375, 33375377, 33375533, 33375535, 33375537, 33375553,
       33375555, 33375557, 33375573, 33375575, 33375577, 33375733, 33375735, 33375737, 33375753, 33375755, 33375757,
       33375773, 33375775, 33375777, 33377335, 33377353, 33377355, 33377357, 33377375, 33377533, 33377535, 33377537,
       33377553, 33377555, 33377557, 33377573, 33377575, 33377577, 33377735, 33377753, 33377755, 33377757, 33377775,
       33533337, 33533357, 33533373, 33533375, 33533377, 33533537, 33533557, 33533573, 33533575, 33533577, 33533733,
       33533735, 33533737, 33533753, 33533755, 33533757, 33533773, 33533775, 33533777, 33535337, 33535357, 33535373,
       33535375, 33535377, 33535537, 33535557, 33535573, 33535575, 33535577, 33535733, 33535735, 33535737, 33535753,
       33535755, 33535757, 33535773, 33535775, 33535777, 33537333, 33537335, 33537337, 33537353, 33537355, 33537357,
       33537373, 33537375, 33537377, 33537533, 33537535, 33537537, 33537553, 33537555, 33537557, 33537573, 33537575,
       33537577, 33537733, 33537735, 33537737, 33537753, 33537755, 33537757, 33537773, 33537775, 33537777, 33553337,
       33553357, 33553373, 33553375, 33553377, 33553537, 33553557, 33553573, 33553575, 33553577, 33553733, 33553735,
       33553737, 33553753, 33553755, 33553757, 33553773, 33553775, 33553777, 33555337, 33555357, 33555373, 33555375,
       33555377, 33555537, 33555557, 33555573, 33555575, 33555577, 33555733, 33555735, 33555737, 33555753, 33555755,
       33555757, 33555773, 33555775, 33555777, 33557333, 33557335, 33557337, 33557353, 33557355, 33557357, 33557373,
       33557375, 33557377, 33557533, 33557535, 33557537, 33557553, 33557555, 33557557, 33557573, 33557575, 33557577,
       33557733, 33557735, 33557737, 33557753, 33557755, 33557757, 33557773, 33557775, 33557777, 33573333, 33573335,
       33573337, 33573353, 33573355, 33573357, 33573373, 33573375, 33573377, 33573533, 33573535, 33573537, 33573553,
       33573555, 33573557, 33573573, 33573575, 33573577, 33573733, 33573735, 33573737, 33573753, 33573755, 33573757,
       33573773, 33573775, 33573777, 33575333, 33575335, 33575337, 33575353, 33575355, 33575357, 33575373, 33575375,
       33575377, 33575533, 33575535, 33575537, 33575553, 33575555, 33575557, 33575573, 33575575, 33575577, 33575733,
       33575735, 33575737, 33575753, 33575755, 33575757, 33575773, 33575775, 33575777, 33577333, 33577335, 33577337,
       33577353, 33577355, 33577357, 33577373, 33577375, 33577377, 33577533, 33577535, 33577537, 33577553, 33577555,
       33577557, 33577573, 33577575, 33577577, 33577733, 33577735, 33577737, 33577753, 33577755, 33577757, 33577773,
       33577775, 33577777, 33733335, 33733353, 33733355, 33733357, 33733375, 33733533, 33733535, 33733537, 33733553,
       33733555, 33733557, 33733573, 33733575, 33733577, 33733735, 33733753, 33733755, 33733757, 33733775, 33735333,
       33735335, 33735337, 33735353, 33735355, 33735357, 33735373, 33735375, 33735377, 33735533, 33735535, 33735537,
       33735553, 33735555, 33735557, 33735573, 33735575, 33735577, 33735733, 33735735, 33735737, 33735753, 33735755,
       33735757, 33735773, 33735775, 33735777, 33737335, 33737353, 33737355, 33737357, 33737375, 33737533, 33737535,
       33737537, 33737553, 33737555, 33737557, 33737573, 33737575, 33737577, 33737735, 33737753, 33737755, 33737757,
       33737775, 33753333, 33753335, 33753337, 33753353, 33753355, 33753357, 33753373, 33753375, 33753377, 33753533,
       33753535, 33753537, 33753553, 33753555, 33753557, 33753573, 33753575, 33753577, 33753733, 33753735, 33753737,
       33753753, 33753755, 33753757, 33753773, 33753775, 33753777, 33755333, 33755335, 33755337, 33755353, 33755355,
       33755357, 33755373, 33755375, 33755377, 33755533, 33755535, 33755537, 33755553, 33755555, 33755557, 33755573,
       33755575, 33755577, 33755733, 33755735, 33755737, 33755753, 33755755, 33755757, 33755773, 33755775, 33755777,
       33757333, 33757335, 33757337, 33757353, 33757355, 33757357, 33757373, 33757375, 33757377, 33757533, 33757535,
       33757537, 33757553, 33757555, 33757557, 33757573, 33757575, 33757577, 33757733, 33757735, 33757737, 33757753,
       33757755, 33757757, 33757773, 33757775, 33757777, 33773335, 33773353, 33773355, 33773357, 33773375, 33773533,
       33773535, 33773537, 33773553, 33773555, 33773557, 33773573, 33773575, 33773577, 33773735, 33773753, 33773755,
       33773757, 33773775, 33775333, 33775335, 33775337, 33775353, 33775355, 33775357, 33775373, 33775375, 33775377,
       33775533, 33775535, 33775537, 33775553, 33775555, 33775557, 33775573, 33775575, 33775577, 33775733, 33775735,
       33775737, 33775753, 33775755, 33775757, 33775773, 33775775, 33775777, 33777335, 33777353, 33777355, 33777357,
       33777375, 33777533, 33777535, 33777537, 33777553, 33777555, 33777557, 33777573, 33777575, 33777577, 33777735,
       33777753, 33777755, 33777757, 33777775, 35333337, 35333357, 35333373, 35333375, 35333377, 35333537, 35333557,
       35333573, 35333575, 35333577, 35333733, 35333735, 35333737, 35333753, 35333755, 35333757, 35333773, 35333775,
       35333777, 35335337, 35335357, 35335373, 35335375, 35335377, 35335537, 35335557, 35335573, 35335575, 35335577,
       35335733, 35335735, 35335737, 35335753, 35335755, 35335757, 35335773, 35335775, 35335777, 35337333, 35337335,
       35337337, 35337353, 35337355, 35337357, 35337373, 35337375, 35337377, 35337533, 35337535, 35337537, 35337553,
       35337555, 35337557, 35337573, 35337575, 35337577, 35337733, 35337735, 35337737, 35337753, 35337755, 35337757,
       35337773, 35337775, 35337777, 35353337, 35353357, 35353373, 35353375, 35353377, 35353537, 35353557, 35353573,
       35353575, 35353577, 35353733, 35353735, 35353737, 35353753, 35353755, 35353757, 35353773, 35353775, 35353777,
       35355337, 35355357, 35355373, 35355375, 35355377, 35355537, 35355557, 35355573, 35355575, 35355577, 35355733,
       35355735, 35355737, 35355753, 35355755, 35355757, 35355773, 35355775, 35355777, 35357333, 35357335, 35357337,
       35357353, 35357355, 35357357, 35357373, 35357375, 35357377, 35357533, 35357535, 35357537, 35357553, 35357555,
       35357557, 35357573, 35357575, 35357577, 35357733, 35357735, 35357737, 35357753, 35357755, 35357757, 35357773,
       35357775, 35357777, 35373333, 35373335, 35373337, 35373353, 35373355, 35373357, 35373373, 35373375, 35373377,
       35373533, 35373535, 35373537, 35373553, 35373555, 35373557, 35373573, 35373575, 35373577, 35373733, 35373735,
       35373737, 35373753, 35373755, 35373757, 35373773, 35373775, 35373777, 35375333, 35375335, 35375337, 35375353,
       35375355, 35375357, 35375373, 35375375, 35375377, 35375533, 35375535, 35375537, 35375553, 35375555, 35375557,
       35375573, 35375575, 35375577, 35375733, 35375735, 35375737, 35375753, 35375755, 35375757, 35375773, 35375775,
       35375777, 35377333, 35377335, 35377337, 35377353, 35377355, 35377357, 35377373, 35377375, 35377377, 35377533,
       35377535, 35377537, 35377553, 35377555, 35377557, 35377573, 35377575, 35377577, 35377733, 35377735, 35377737,
       35377753, 35377755, 35377757, 35377773, 35377775, 35377777, 35533337, 35533357, 35533373, 35533375, 35533377,
       35533537, 35533557, 35533573, 35533575, 35533577, 35533733, 35533735, 35533737, 35533753, 35533755, 35533757,
       35533773, 35533775, 35533777, 35535337, 35535357, 35535373, 35535375, 35535377, 35535537, 35535557, 35535573,
       35535575, 35535577, 35535733, 35535735, 35535737, 35535753, 35535755, 35535757, 35535773, 35535775, 35535777,
       35537333, 35537335, 35537337, 35537353, 35537355, 35537357, 35537373, 35537375, 35537377, 35537533, 35537535,
       35537537, 35537553, 35537555, 35537557, 35537573, 35537575, 35537577, 35537733, 35537735, 35537737, 35537753,
       35537755, 35537757, 35537773, 35537775, 35537777, 35553337, 35553357, 35553373, 35553375, 35553377, 35553537,
       35553557, 35553573, 35553575, 35553577, 35553733, 35553735, 35553737, 35553753, 35553755, 35553757, 35553773,
       35553775, 35553777, 35555337, 35555357, 35555373, 35555375, 35555377, 35555537, 35555557, 35555573, 35555575,
       35555577, 35555733, 35555735, 35555737, 35555753, 35555755, 35555757, 35555773, 35555775, 35555777, 35557333,
       35557335, 35557337, 35557353, 35557355, 35557357, 35557373, 35557375, 35557377, 35557533, 35557535, 35557537,
       35557553, 35557555, 35557557, 35557573, 35557575, 35557577, 35557733, 35557735, 35557737, 35557753, 35557755,
       35557757, 35557773, 35557775, 35557777, 35573333, 35573335, 35573337, 35573353, 35573355, 35573357, 35573373,
       35573375, 35573377, 35573533, 35573535, 35573537, 35573553, 35573555, 35573557, 35573573, 35573575, 35573577,
       35573733, 35573735, 35573737, 35573753, 35573755, 35573757, 35573773, 35573775, 35573777, 35575333, 35575335,
       35575337, 35575353, 35575355, 35575357, 35575373, 35575375, 35575377, 35575533, 35575535, 35575537, 35575553,
       35575555, 35575557, 35575573, 35575575, 35575577, 35575733, 35575735, 35575737, 35575753, 35575755, 35575757,
       35575773, 35575775, 35575777, 35577333, 35577335, 35577337, 35577353, 35577355, 35577357, 35577373, 35577375,
       35577377, 35577533, 35577535, 35577537, 35577553, 35577555, 35577557, 35577573, 35577575, 35577577, 35577733,
       35577735, 35577737, 35577753, 35577755, 35577757, 35577773, 35577775, 35577777, 35733333, 35733335, 35733337,
       35733353, 35733355, 35733357, 35733373, 35733375, 35733377, 35733533, 35733535, 35733537, 35733553, 35733555,
       35733557, 35733573, 35733575, 35733577, 35733733, 35733735, 35733737, 35733753, 35733755, 35733757, 35733773,
       35733775, 35733777, 35735333, 35735335, 35735337, 35735353, 35735355, 35735357, 35735373, 35735375, 35735377,
       35735533, 35735535, 35735537, 35735553, 35735555, 35735557, 35735573, 35735575, 35735577, 35735733, 35735735,
       35735737, 35735753, 35735755, 35735757, 35735773, 35735775, 35735777, 35737333, 35737335, 35737337, 35737353,
       35737355, 35737357, 35737373, 35737375, 35737377, 35737533, 35737535, 35737537, 35737553, 35737555, 35737557,
       35737573, 35737575, 35737577, 35737733, 35737735, 35737737, 35737753, 35737755, 35737757, 35737773, 35737775,
       35737777, 35753333, 35753335, 35753337, 35753353, 35753355, 35753357, 35753373, 35753375, 35753377, 35753533,
       35753535, 35753537, 35753553, 35753555, 35753557, 35753573, 35753575, 35753577, 35753733, 35753735, 35753737,
       35753753, 35753755, 35753757, 35753773, 35753775, 35753777, 35755333, 35755335, 35755337, 35755353, 35755355,
       35755357, 35755373, 35755375, 35755377, 35755533, 35755535, 35755537, 35755553, 35755555, 35755557, 35755573,
       35755575, 35755577, 35755733, 35755735, 35755737, 35755753, 35755755, 35755757, 35755773, 35755775, 35755777,
       35757333, 35757335, 35757337, 35757353, 35757355, 35757357, 35757373, 35757375, 35757377, 35757533, 35757535,
       35757537, 35757553, 35757555, 35757557, 35757573, 35757575, 35757577, 35757733, 35757735, 35757737, 35757753,
       35757755, 35757757, 35757773, 35757775, 35757777, 35773333, 35773335, 35773337, 35773353, 35773355, 35773357,
       35773373, 35773375, 35773377, 35773533, 35773535, 35773537, 35773553, 35773555, 35773557, 35773573, 35773575,
       35773577, 35773733, 35773735, 35773737, 35773753, 35773755, 35773757, 35773773, 35773775, 35773777, 35775333,
       35775335, 35775337, 35775353, 35775355, 35775357, 35775373, 35775375, 35775377, 35775533, 35775535, 35775537,
       35775553, 35775555, 35775557, 35775573, 35775575, 35775577, 35775733, 35775735, 35775737, 35775753, 35775755,
       35775757, 35775773, 35775775, 35775777, 35777333, 35777335, 35777337, 35777353, 35777355, 35777357, 35777373,
       35777375, 35777377, 35777533, 35777535, 35777537, 35777553, 35777555, 35777557, 35777573, 35777575, 35777577,
       35777733, 35777735, 35777737, 35777753, 35777755, 35777757, 35777773, 35777775, 35777777, 37333335, 37333353,
       37333355, 37333357, 37333375, 37333533, 37333535, 37333537, 37333553, 37333555, 37333557, 37333573, 37333575,
       37333577, 37333735, 37333753, 37333755, 37333757, 37333775, 37335333, 37335335, 37335337, 37335353, 37335355,
       37335357, 37335373, 37335375, 37335377, 37335533, 37335535, 37335537, 37335553, 37335555, 37335557, 37335573,
       37335575, 37335577, 37335733, 37335735, 37335737, 37335753, 37335755, 37335757, 37335773, 37335775, 37335777,
       37337335, 37337353, 37337355, 37337357, 37337375, 37337533, 37337535, 37337537, 37337553, 37337555, 37337557,
       37337573, 37337575, 37337577, 37337735, 37337753, 37337755, 37337757, 37337775, 37353333, 37353335, 37353337,
       37353353, 37353355, 37353357, 37353373, 37353375, 37353377, 37353533, 37353535, 37353537, 37353553, 37353555,
       37353557, 37353573, 37353575, 37353577, 37353733, 37353735, 37353737, 37353753, 37353755, 37353757, 37353773,
       37353775, 37353777, 37355333, 37355335, 37355337, 37355353, 37355355, 37355357, 37355373, 37355375, 37355377,
       37355533, 37355535, 37355537, 37355553, 37355555, 37355557, 37355573, 37355575, 37355577, 37355733, 37355735,
       37355737, 37355753, 37355755, 37355757, 37355773, 37355775, 37355777, 37357333, 37357335, 37357337, 37357353,
       37357355, 37357357, 37357373, 37357375, 37357377, 37357533, 37357535, 37357537, 37357553, 37357555, 37357557,
       37357573, 37357575, 37357577, 37357733, 37357735, 37357737, 37357753, 37357755, 37357757, 37357773, 37357775,
       37357777, 37373335, 37373353, 37373355, 37373357, 37373375, 37373533, 37373535, 37373537, 37373553, 37373555,
       37373557, 37373573, 37373575, 37373577, 37373735, 37373753, 37373755, 37373757, 37373775, 37375333, 37375335,
       37375337, 37375353, 37375355, 37375357, 37375373, 37375375, 37375377, 37375533, 37375535, 37375537, 37375553,
       37375555, 37375557, 37375573, 37375575, 37375577, 37375733, 37375735, 37375737, 37375753, 37375755, 37375757,
       37375773, 37375775, 37375777, 37377335, 37377353, 37377355, 37377357, 37377375, 37377533, 37377535, 37377537,
       37377553, 37377555, 37377557, 37377573, 37377575, 37377577, 37377735, 37377753, 37377755, 37377757, 37377775,
       37533333, 37533335, 37533337, 37533353, 37533355, 37533357, 37533373, 37533375, 37533377, 37533533, 37533535,
       37533537, 37533553, 37533555, 37533557, 37533573, 37533575, 37533577, 37533733, 37533735, 37533737, 37533753,
       37533755, 37533757, 37533773, 37533775, 37533777, 37535333, 37535335, 37535337, 37535353, 37535355, 37535357,
       37535373, 37535375, 37535377, 37535533, 37535535, 37535537, 37535553, 37535555, 37535557, 37535573, 37535575,
       37535577, 37535733, 37535735, 37535737, 37535753, 37535755, 37535757, 37535773, 37535775, 37535777, 37537333,
       37537335, 37537337, 37537353, 37537355, 37537357, 37537373, 37537375, 37537377, 37537533, 37537535, 37537537,
       37537553, 37537555, 37537557, 37537573, 37537575, 37537577, 37537733, 37537735, 37537737, 37537753, 37537755,
       37537757, 37537773, 37537775, 37537777, 37553333, 37553335, 37553337, 37553353, 37553355, 37553357, 37553373,
       37553375, 37553377, 37553533, 37553535, 37553537, 37553553, 37553555, 37553557, 37553573, 37553575, 37553577,
       37553733, 37553735, 37553737, 37553753, 37553755, 37553757, 37553773, 37553775, 37553777, 37555333, 37555335,
       37555337, 37555353, 37555355, 37555357, 37555373, 37555375, 37555377, 37555533, 37555535, 37555537, 37555553,
       37555555, 37555557, 37555573, 37555575, 37555577, 37555733, 37555735, 37555737, 37555753, 37555755, 37555757,
       37555773, 37555775, 37555777, 37557333, 37557335, 37557337, 37557353, 37557355, 37557357, 37557373, 37557375,
       37557377, 37557533, 37557535, 37557537, 37557553, 37557555, 37557557, 37557573, 37557575, 37557577, 37557733,
       37557735, 37557737, 37557753, 37557755, 37557757, 37557773, 37557775, 37557777, 37573333, 37573335, 37573337,
       37573353, 37573355, 37573357, 37573373, 37573375, 37573377, 37573533, 37573535, 37573537, 37573553, 37573555,
       37573557, 37573573, 37573575, 37573577, 37573733, 37573735, 37573737, 37573753, 37573755, 37573757, 37573773,
       37573775, 37573777, 37575333, 37575335, 37575337, 37575353, 37575355, 37575357, 37575373, 37575375, 37575377,
       37575533, 37575535, 37575537, 37575553, 37575555, 37575557, 37575573, 37575575, 37575577, 37575733, 37575735,
       37575737, 37575753, 37575755, 37575757, 37575773, 37575775, 37575777, 37577333, 37577335, 37577337, 37577353,
       37577355, 37577357, 37577373, 37577375, 37577377, 37577533, 37577535, 37577537, 37577553, 37577555, 37577557,
       37577573, 37577575, 37577577, 37577733, 37577735, 37577737, 37577753, 37577755, 37577757, 37577773, 37577775,
       37577777, 37733335, 37733353, 37733355, 37733357, 37733375, 37733533, 37733535, 37733537, 37733553, 37733555,
       37733557, 37733573, 37733575, 37733577, 37733735, 37733753, 37733755, 37733757, 37733775, 37735333, 37735335,
       37735337, 37735353, 37735355, 37735357, 37735373, 37735375, 37735377, 37735533, 37735535, 37735537, 37735553,
       37735555, 37735557, 37735573, 37735575, 37735577, 37735733, 37735735, 37735737, 37735753, 37735755, 37735757,
       37735773, 37735775, 37735777, 37737335, 37737353, 37737355, 37737357, 37737375, 37737533, 37737535, 37737537,
       37737553, 37737555, 37737557, 37737573, 37737575, 37737577, 37737735, 37737753, 37737755, 37737757, 37737775,
       37753333, 37753335, 37753337, 37753353, 37753355, 37753357, 37753373, 37753375, 37753377, 37753533, 37753535,
       37753537, 37753553, 37753555, 37753557, 37753573, 37753575, 37753577, 37753733, 37753735, 37753737, 37753753,
       37753755, 37753757, 37753773, 37753775, 37753777, 37755333, 37755335, 37755337, 37755353, 37755355, 37755357,
       37755373, 37755375, 37755377, 37755533, 37755535, 37755537, 37755553, 37755555, 37755557, 37755573, 37755575,
       37755577, 37755733, 37755735, 37755737, 37755753, 37755755, 37755757, 37755773, 37755775, 37755777, 37757333,
       37757335, 37757337, 37757353, 37757355, 37757357, 37757373, 37757375, 37757377, 37757533, 37757535, 37757537,
       37757553, 37757555, 37757557, 37757573, 37757575, 37757577, 37757733, 37757735, 37757737, 37757753, 37757755,
       37757757, 37757773, 37757775, 37757777, 37773335, 37773353, 37773355, 37773357, 37773375, 37773533, 37773535,
       37773537, 37773553, 37773555, 37773557, 37773573, 37773575, 37773577, 37773735, 37773753, 37773755, 37773757,
       37773775, 37775333, 37775335, 37775337, 37775353, 37775355, 37775357, 37775373, 37775375, 37775377, 37775533,
       37775535, 37775537, 37775553, 37775555, 37775557, 37775573, 37775575, 37775577, 37775733, 37775735, 37775737,
       37775753, 37775755, 37775757, 37775773, 37775775, 37775777, 37777335, 37777353, 37777355, 37777357, 37777375,
       37777533, 37777535, 37777537, 37777553, 37777555, 37777557, 37777573, 37777575, 37777577, 37777735, 37777753,
       37777755, 37777757, 37777775, 53333337, 53333357, 53333373, 53333375, 53333377, 53333537, 53333557, 53333573,
       53333575, 53333577, 53333733, 53333735, 53333737, 53333753, 53333755, 53333757, 53333773, 53333775, 53333777,
       53335337, 53335357, 53335373, 53335375, 53335377, 53335537, 53335557, 53335573, 53335575, 53335577, 53335733,
       53335735, 53335737, 53335753, 53335755, 53335757, 53335773, 53335775, 53335777, 53337333, 53337335, 53337337,
       53337353, 53337355, 53337357, 53337373, 53337375, 53337377, 53337533, 53337535, 53337537, 53337553, 53337555,
       53337557, 53337573, 53337575, 53337577, 53337733, 53337735, 53337737, 53337753, 53337755, 53337757, 53337773,
       53337775, 53337777, 53353337, 53353357, 53353373, 53353375, 53353377, 53353537, 53353557, 53353573, 53353575,
       53353577, 53353733, 53353735, 53353737, 53353753, 53353755, 53353757, 53353773, 53353775, 53353777, 53355337,
       53355357, 53355373, 53355375, 53355377, 53355537, 53355557, 53355573, 53355575, 53355577, 53355733, 53355735,
       53355737, 53355753, 53355755, 53355757, 53355773, 53355775, 53355777, 53357333, 53357335, 53357337, 53357353,
       53357355, 53357357, 53357373, 53357375, 53357377, 53357533, 53357535, 53357537, 53357553, 53357555, 53357557,
       53357573, 53357575, 53357577, 53357733, 53357735, 53357737, 53357753, 53357755, 53357757, 53357773, 53357775,
       53357777, 53373333, 53373335, 53373337, 53373353, 53373355, 53373357, 53373373, 53373375, 53373377, 53373533,
       53373535, 53373537, 53373553, 53373555, 53373557, 53373573, 53373575, 53373577, 53373733, 53373735, 53373737,
       53373753, 53373755, 53373757, 53373773, 53373775, 53373777, 53375333, 53375335, 53375337, 53375353, 53375355,
       53375357, 53375373, 53375375, 53375377, 53375533, 53375535, 53375537, 53375553, 53375555, 53375557, 53375573,
       53375575, 53375577, 53375733, 53375735, 53375737, 53375753, 53375755, 53375757, 53375773, 53375775, 53375777,
       53377333, 53377335, 53377337, 53377353, 53377355, 53377357, 53377373, 53377375, 53377377, 53377533, 53377535,
       53377537, 53377553, 53377555, 53377557, 53377573, 53377575, 53377577, 53377733, 53377735, 53377737, 53377753,
       53377755, 53377757, 53377773, 53377775, 53377777, 53533337, 53533357, 53533373, 53533375, 53533377, 53533537,
       53533557, 53533573, 53533575, 53533577, 53533733, 53533735, 53533737, 53533753, 53533755, 53533757, 53533773,
       53533775, 53533777, 53535337, 53535357, 53535373, 53535375, 53535377, 53535537, 53535557, 53535573, 53535575,
       53535577, 53535733, 53535735, 53535737, 53535753, 53535755, 53535757, 53535773, 53535775, 53535777, 53537333,
       53537335, 53537337, 53537353, 53537355, 53537357, 53537373, 53537375, 53537377, 53537533, 53537535, 53537537,
       53537553, 53537555, 53537557, 53537573, 53537575, 53537577, 53537733, 53537735, 53537737, 53537753, 53537755,
       53537757, 53537773, 53537775, 53537777, 53553337, 53553357, 53553373, 53553375, 53553377, 53553537, 53553557,
       53553573, 53553575, 53553577, 53553733, 53553735, 53553737, 53553753, 53553755, 53553757, 53553773, 53553775,
       53553777, 53555337, 53555357, 53555373, 53555375, 53555377, 53555537, 53555557, 53555573, 53555575, 53555577,
       53555733, 53555735, 53555737, 53555753, 53555755, 53555757, 53555773, 53555775, 53555777, 53557333, 53557335,
       53557337, 53557353, 53557355, 53557357, 53557373, 53557375, 53557377, 53557533, 53557535, 53557537, 53557553,
       53557555, 53557557, 53557573, 53557575, 53557577, 53557733, 53557735, 53557737, 53557753, 53557755, 53557757,
       53557773, 53557775, 53557777, 53573333, 53573335, 53573337, 53573353, 53573355, 53573357, 53573373, 53573375,
       53573377, 53573533, 53573535, 53573537, 53573553, 53573555, 53573557, 53573573, 53573575, 53573577, 53573733,
       53573735, 53573737, 53573753, 53573755, 53573757, 53573773, 53573775, 53573777, 53575333, 53575335, 53575337,
       53575353, 53575355, 53575357, 53575373, 53575375, 53575377, 53575533, 53575535, 53575537, 53575553, 53575555,
       53575557, 53575573, 53575575, 53575577, 53575733, 53575735, 53575737, 53575753, 53575755, 53575757, 53575773,
       53575775, 53575777, 53577333, 53577335, 53577337, 53577353, 53577355, 53577357, 53577373, 53577375, 53577377,
       53577533, 53577535, 53577537, 53577553, 53577555, 53577557, 53577573, 53577575, 53577577, 53577733, 53577735,
       53577737, 53577753, 53577755, 53577757, 53577773, 53577775, 53577777, 53733333, 53733335, 53733337, 53733353,
       53733355, 53733357, 53733373, 53733375, 53733377, 53733533, 53733535, 53733537, 53733553, 53733555, 53733557,
       53733573, 53733575, 53733577, 53733733, 53733735, 53733737, 53733753, 53733755, 53733757, 53733773, 53733775,
       53733777, 53735333, 53735335, 53735337, 53735353, 53735355, 53735357, 53735373, 53735375, 53735377, 53735533,
       53735535, 53735537, 53735553, 53735555, 53735557, 53735573, 53735575, 53735577, 53735733, 53735735, 53735737,
       53735753, 53735755, 53735757, 53735773, 53735775, 53735777, 53737333, 53737335, 53737337, 53737353, 53737355,
       53737357, 53737373, 53737375, 53737377, 53737533, 53737535, 53737537, 53737553, 53737555, 53737557, 53737573,
       53737575, 53737577, 53737733, 53737735, 53737737, 53737753, 53737755, 53737757, 53737773, 53737775, 53737777,
       53753333, 53753335, 53753337, 53753353, 53753355, 53753357, 53753373, 53753375, 53753377, 53753533, 53753535,
       53753537, 53753553, 53753555, 53753557, 53753573, 53753575, 53753577, 53753733, 53753735, 53753737, 53753753,
       53753755, 53753757, 53753773, 53753775, 53753777, 53755333, 53755335, 53755337, 53755353, 53755355, 53755357,
       53755373, 53755375, 53755377, 53755533, 53755535, 53755537, 53755553, 53755555, 53755557, 53755573, 53755575,
       53755577, 53755733, 53755735, 53755737, 53755753, 53755755, 53755757, 53755773, 53755775, 53755777, 53757333,
       53757335, 53757337, 53757353, 53757355, 53757357, 53757373, 53757375, 53757377, 53757533, 53757535, 53757537,
       53757553, 53757555, 53757557, 53757573, 53757575, 53757577, 53757733, 53757735, 53757737, 53757753, 53757755,
       53757757, 53757773, 53757775, 53757777, 53773333, 53773335, 53773337, 53773353, 53773355, 53773357, 53773373,
       53773375, 53773377, 53773533, 53773535, 53773537, 53773553, 53773555, 53773557, 53773573, 53773575, 53773577,
       53773733, 53773735, 53773737, 53773753, 53773755, 53773757, 53773773, 53773775, 53773777, 53775333, 53775335,
       53775337, 53775353, 53775355, 53775357, 53775373, 53775375, 53775377, 53775533, 53775535, 53775537, 53775553,
       53775555, 53775557, 53775573, 53775575, 53775577, 53775733, 53775735, 53775737, 53775753, 53775755, 53775757,
       53775773, 53775775, 53775777, 53777333, 53777335, 53777337, 53777353, 53777355, 53777357, 53777373, 53777375,
       53777377, 53777533, 53777535, 53777537, 53777553, 53777555, 53777557, 53777573, 53777575, 53777577, 53777733,
       53777735, 53777737, 53777753, 53777755, 53777757, 53777773, 53777775, 53777777, 55333337, 55333357, 55333373,
       55333375, 55333377, 55333537, 55333557, 55333573, 55333575, 55333577, 55333733, 55333735, 55333737, 55333753,
       55333755, 55333757, 55333773, 55333775, 55333777, 55335337, 55335357, 55335373, 55335375, 55335377, 55335537,
       55335557, 55335573, 55335575, 55335577, 55335733, 55335735, 55335737, 55335753, 55335755, 55335757, 55335773,
       55335775, 55335777, 55337333, 55337335, 55337337, 55337353, 55337355, 55337357, 55337373, 55337375, 55337377,
       55337533, 55337535, 55337537, 55337553, 55337555, 55337557, 55337573, 55337575, 55337577, 55337733, 55337735,
       55337737, 55337753, 55337755, 55337757, 55337773, 55337775, 55337777, 55353337, 55353357, 55353373, 55353375,
       55353377, 55353537, 55353557, 55353573, 55353575, 55353577, 55353733, 55353735, 55353737, 55353753, 55353755,
       55353757, 55353773, 55353775, 55353777, 55355337, 55355357, 55355373, 55355375, 55355377, 55355537, 55355557,
       55355573, 55355575, 55355577, 55355733, 55355735, 55355737, 55355753, 55355755, 55355757, 55355773, 55355775,
       55355777, 55357333, 55357335, 55357337, 55357353, 55357355, 55357357, 55357373, 55357375, 55357377, 55357533,
       55357535, 55357537, 55357553, 55357555, 55357557, 55357573, 55357575, 55357577, 55357733, 55357735, 55357737,
       55357753, 55357755, 55357757, 55357773, 55357775, 55357777, 55373333, 55373335, 55373337, 55373353, 55373355,
       55373357, 55373373, 55373375, 55373377, 55373533, 55373535, 55373537, 55373553, 55373555, 55373557, 55373573,
       55373575, 55373577, 55373733, 55373735, 55373737, 55373753, 55373755, 55373757, 55373773, 55373775, 55373777,
       55375333, 55375335, 55375337, 55375353, 55375355, 55375357, 55375373, 55375375, 55375377, 55375533, 55375535,
       55375537, 55375553, 55375555, 55375557, 55375573, 55375575, 55375577, 55375733, 55375735, 55375737, 55375753,
       55375755, 55375757, 55375773, 55375775, 55375777, 55377333, 55377335, 55377337, 55377353, 55377355, 55377357,
       55377373, 55377375, 55377377, 55377533, 55377535, 55377537, 55377553, 55377555, 55377557, 55377573, 55377575,
       55377577, 55377733, 55377735, 55377737, 55377753, 55377755, 55377757, 55377773, 55377775, 55377777, 55533337,
       55533357, 55533373, 55533375, 55533377, 55533537, 55533557, 55533573, 55533575, 55533577, 55533733, 55533735,
       55533737, 55533753, 55533755, 55533757, 55533773, 55533775, 55533777, 55535337, 55535357, 55535373, 55535375,
       55535377, 55535537, 55535557, 55535573, 55535575, 55535577, 55535733, 55535735, 55535737, 55535753, 55535755,
       55535757, 55535773, 55535775, 55535777, 55537333, 55537335, 55537337, 55537353, 55537355, 55537357, 55537373,
       55537375, 55537377, 55537533, 55537535, 55537537, 55537553, 55537555, 55537557, 55537573, 55537575, 55537577,
       55537733, 55537735, 55537737, 55537753, 55537755, 55537757, 55537773, 55537775, 55537777, 55553337, 55553357,
       55553373, 55553375, 55553377, 55553537, 55553557, 55553573, 55553575, 55553577, 55553733, 55553735, 55553737,
       55553753, 55553755, 55553757, 55553773, 55553775, 55553777, 55555337, 55555357, 55555373, 55555375, 55555377,
       55555537, 55555573, 55555733, 55555735, 55555737, 55555753, 55555773, 55557333, 55557335, 55557337, 55557353,
       55557355, 55557357, 55557373, 55557375, 55557377, 55557533, 55557535, 55557537, 55557553, 55557573, 55557733,
       55557735, 55557737, 55557753, 55557773, 55573333, 55573335, 55573337, 55573353, 55573355, 55573357, 55573373,
       55573375, 55573377, 55573533, 55573535, 55573537, 55573553, 55573555, 55573557, 55573573, 55573575, 55573577,
       55573733, 55573735, 55573737, 55573753, 55573755, 55573757, 55573773, 55573775, 55573777, 55575333, 55575335,
       55575337, 55575353, 55575355, 55575357, 55575373, 55575375, 55575377, 55575533, 55575535, 55575537, 55575553,
       55575573, 55575733, 55575735, 55575737, 55575753, 55575773, 55577333, 55577335, 55577337, 55577353, 55577355,
       55577357, 55577373, 55577375, 55577377, 55577533, 55577535, 55577537, 55577553, 55577573, 55577733, 55577735,
       55577737, 55577753, 55577773, 55733333, 55733335, 55733337, 55733353, 55733355, 55733357, 55733373, 55733375,
       55733377, 55733533, 55733535, 55733537, 55733553, 55733555, 55733557, 55733573, 55733575, 55733577, 55733733,
       55733735, 55733737, 55733753, 55733755, 55733757, 55733773, 55733775, 55733777, 55735333, 55735335, 55735337,
       55735353, 55735355, 55735357, 55735373, 55735375, 55735377, 55735533, 55735535, 55735537, 55735553, 55735555,
       55735557, 55735573, 55735575, 55735577, 55735733, 55735735, 55735737, 55735753, 55735755, 55735757, 55735773,
       55735775, 55735777, 55737333, 55737335, 55737337, 55737353, 55737355, 55737357, 55737373, 55737375, 55737377,
       55737533, 55737535, 55737537, 55737553, 55737555, 55737557, 55737573, 55737575, 55737577, 55737733, 55737735,
       55737737, 55737753, 55737755, 55737757, 55737773, 55737775, 55737777, 55753333, 55753335, 55753337, 55753353,
       55753355, 55753357, 55753373, 55753375, 55753377, 55753533, 55753535, 55753537, 55753553, 55753555, 55753557,
       55753573, 55753575, 55753577, 55753733, 55753735, 55753737, 55753753, 55753755, 55753757, 55753773, 55753775,
       55753777, 55755333, 55755335, 55755337, 55755353, 55755355, 55755357, 55755373, 55755375, 55755377, 55755533,
       55755535, 55755537, 55755553, 55755573, 55755733, 55755735, 55755737, 55755753, 55755773, 55757333, 55757335,
       55757337, 55757353, 55757355, 55757357, 55757373, 55757375, 55757377, 55757533, 55757535, 55757537, 55757553,
       55757573, 55757733, 55757735, 55757737, 55757753, 55757773, 55773333, 55773335, 55773337, 55773353, 55773355,
       55773357, 55773373, 55773375, 55773377, 55773533, 55773535, 55773537, 55773553, 55773555, 55773557, 55773573,
       55773575, 55773577, 55773733, 55773735, 55773737, 55773753, 55773755, 55773757, 55773773, 55773775, 55773777,
       55775333, 55775335, 55775337, 55775353, 55775355, 55775357, 55775373, 55775375, 55775377, 55775533, 55775535,
       55775537, 55775553, 55775573, 55775733, 55775735, 55775737, 55775753, 55775773, 55777333, 55777335, 55777337,
       55777353, 55777355, 55777357, 55777373, 55777375, 55777377, 55777533, 55777535, 55777537, 55777553, 55777573,
       55777733, 55777735, 55777737, 55777753, 55777773, 57333333, 57333335, 57333337, 57333353, 57333355, 57333357,
       57333373, 57333375, 57333377, 57333533, 57333535, 57333537, 57333553, 57333555, 57333557, 57333573, 57333575,
       57333577, 57333733, 57333735, 57333737, 57333753, 57333755, 57333757, 57333773, 57333775, 57333777, 57335333,
       57335335, 57335337, 57335353, 57335355, 57335357, 57335373, 57335375, 57335377, 57335533, 57335535, 57335537,
       57335553, 57335555, 57335557, 57335573, 57335575, 57335577, 57335733, 57335735, 57335737, 57335753, 57335755,
       57335757, 57335773, 57335775, 57335777, 57337333, 57337335, 57337337, 57337353, 57337355, 57337357, 57337373,
       57337375, 57337377, 57337533, 57337535, 57337537, 57337553, 57337555, 57337557, 57337573, 57337575, 57337577,
       57337733, 57337735, 57337737, 57337753, 57337755, 57337757, 57337773, 57337775, 57337777, 57353333, 57353335,
       57353337, 57353353, 57353355, 57353357, 57353373, 57353375, 57353377, 57353533, 57353535, 57353537, 57353553,
       57353555, 57353557, 57353573, 57353575, 57353577, 57353733, 57353735, 57353737, 57353753, 57353755, 57353757,
       57353773, 57353775, 57353777, 57355333, 57355335, 57355337, 57355353, 57355355, 57355357, 57355373, 57355375,
       57355377, 57355533, 57355535, 57355537, 57355553, 57355555, 57355557, 57355573, 57355575, 57355577, 57355733,
       57355735, 57355737, 57355753, 57355755, 57355757, 57355773, 57355775, 57355777, 57357333, 57357335, 57357337,
       57357353, 57357355, 57357357, 57357373, 57357375, 57357377, 57357533, 57357535, 57357537, 57357553, 57357555,
       57357557, 57357573, 57357575, 57357577, 57357733, 57357735, 57357737, 57357753, 57357755, 57357757, 57357773,
       57357775, 57357777, 57373333, 57373335, 57373337, 57373353, 57373355, 57373357, 57373373, 57373375, 57373377,
       57373533, 57373535, 57373537, 57373553, 57373555, 57373557, 57373573, 57373575, 57373577, 57373733, 57373735,
       57373737, 57373753, 57373755, 57373757, 57373773, 57373775, 57373777, 57375333, 57375335, 57375337, 57375353,
       57375355, 57375357, 57375373, 57375375, 57375377, 57375533, 57375535, 57375537, 57375553, 57375555, 57375557,
       57375573, 57375575, 57375577, 57375733, 57375735, 57375737, 57375753, 57375755, 57375757, 57375773, 57375775,
       57375777, 57377333, 57377335, 57377337, 57377353, 57377355, 57377357, 57377373, 57377375, 57377377, 57377533,
       57377535, 57377537, 57377553, 57377555, 57377557, 57377573, 57377575, 57377577, 57377733, 57377735, 57377737,
       57377753, 57377755, 57377757, 57377773, 57377775, 57377777, 57533333, 57533335, 57533337, 57533353, 57533355,
       57533357, 57533373, 57533375, 57533377, 57533533, 57533535, 57533537, 57533553, 57533555, 57533557, 57533573,
       57533575, 57533577, 57533733, 57533735, 57533737, 57533753, 57533755, 57533757, 57533773, 57533775, 57533777,
       57535333, 57535335, 57535337, 57535353, 57535355, 57535357, 57535373, 57535375, 57535377, 57535533, 57535535,
       57535537, 57535553, 57535555, 57535557, 57535573, 57535575, 57535577, 57535733, 57535735, 57535737, 57535753,
       57535755, 57535757, 57535773, 57535775, 57535777, 57537333, 57537335, 57537337, 57537353, 57537355, 57537357,
       57537373, 57537375, 57537377, 57537533, 57537535, 57537537, 57537553, 57537555, 57537557, 57537573, 57537575,
       57537577, 57537733, 57537735, 57537737, 57537753, 57537755, 57537757, 57537773, 57537775, 57537777, 57553333,
       57553335, 57553337, 57553353, 57553355, 57553357, 57553373, 57553375, 57553377, 57553533, 57553535, 57553537,
       57553553, 57553555, 57553557, 57553573, 57553575, 57553577, 57553733, 57553735, 57553737, 57553753, 57553755,
       57553757, 57553773, 57553775, 57553777, 57555333, 57555335, 57555337, 57555353, 57555355, 57555357, 57555373,
       57555375, 57555377, 57555533, 57555535, 57555537, 57555553, 57555573, 57555733, 57555735, 57555737, 57555753,
       57555773, 57557333, 57557335, 57557337, 57557353, 57557355, 57557357, 57557373, 57557375, 57557377, 57557533,
       57557535, 57557537, 57557553, 57557573, 57557733, 57557735, 57557737, 57557753, 57557773, 57573333, 57573335,
       57573337, 57573353, 57573355, 57573357, 57573373, 57573375, 57573377, 57573533, 57573535, 57573537, 57573553,
       57573555, 57573557, 57573573, 57573575, 57573577, 57573733, 57573735, 57573737, 57573753, 57573755, 57573757,
       57573773, 57573775, 57573777, 57575333, 57575335, 57575337, 57575353, 57575355, 57575357, 57575373, 57575375,
       57575377, 57575533, 57575535, 57575537, 57575553, 57575573, 57575733, 57575735, 57575737, 57575753, 57575773,
       57577333, 57577335, 57577337, 57577353, 57577355, 57577357, 57577373, 57577375, 57577377, 57577533, 57577535,
       57577537, 57577553, 57577573, 57577733, 57577735, 57577737, 57577753, 57577773, 57733333, 57733335, 57733337,
       57733353, 57733355, 57733357, 57733373, 57733375, 57733377, 57733533, 57733535, 57733537, 57733553, 57733555,
       57733557, 57733573, 57733575, 57733577, 57733733, 57733735, 57733737, 57733753, 57733755, 57733757, 57733773,
       57733775, 57733777, 57735333, 57735335, 57735337, 57735353, 57735355, 57735357, 57735373, 57735375, 57735377,
       57735533, 57735535, 57735537, 57735553, 57735555, 57735557, 57735573, 57735575, 57735577, 57735733, 57735735,
       57735737, 57735753, 57735755, 57735757, 57735773, 57735775, 57735777, 57737333, 57737335, 57737337, 57737353,
       57737355, 57737357, 57737373, 57737375, 57737377, 57737533, 57737535, 57737537, 57737553, 57737555, 57737557,
       57737573, 57737575, 57737577, 57737733, 57737735, 57737737, 57737753, 57737755, 57737757, 57737773, 57737775,
       57737777, 57753333, 57753335, 57753337, 57753353, 57753355, 57753357, 57753373, 57753375, 57753377, 57753533,
       57753535, 57753537, 57753553, 57753555, 57753557, 57753573, 57753575, 57753577, 57753733, 57753735, 57753737,
       57753753, 57753755, 57753757, 57753773, 57753775, 57753777, 57755333, 57755335, 57755337, 57755353, 57755355,
       57755357, 57755373, 57755375, 57755377, 57755533, 57755535, 57755537, 57755553, 57755573, 57755733, 57755735,
       57755737, 57755753, 57755773, 57757333, 57757335, 57757337, 57757353, 57757355, 57757357, 57757373, 57757375,
       57757377, 57757533, 57757535, 57757537, 57757553, 57757573, 57757733, 57757735, 57757737, 57757753, 57757773,
       57773333, 57773335, 57773337, 57773353, 57773355, 57773357, 57773373, 57773375, 57773377, 57773533, 57773535,
       57773537, 57773553, 57773555, 57773557, 57773573, 57773575, 57773577, 57773733, 57773735, 57773737, 57773753,
       57773755, 57773757, 57773773, 57773775, 57773777, 57775333, 57775335, 57775337, 57775353, 57775355, 57775357,
       57775373, 57775375, 57775377, 57775533, 57775535, 57775537, 57775553, 57775573, 57775733, 57775735, 57775737,
       57775753, 57775773, 57777333, 57777335, 57777337, 57777353, 57777355, 57777357, 57777373, 57777375, 57777377,
       57777533, 57777535, 57777537, 57777553, 57777573, 57777733, 57777735, 57777737, 57777753, 57777773, 73333335,
       73333353, 73333355, 73333357, 73333375, 73333533, 73333535, 73333537, 73333553, 73333555, 73333557, 73333573,
       73333575, 73333577, 73333735, 73333753, 73333755, 73333757, 73333775, 73335333, 73335335, 73335337, 73335353,
       73335355, 73335357, 73335373, 73335375, 73335377, 73335533, 73335535, 73335537, 73335553, 73335555, 73335557,
       73335573, 73335575, 73335577, 73335733, 73335735, 73335737, 73335753, 73335755, 73335757, 73335773, 73335775,
       73335777, 73337335, 73337353, 73337355, 73337357, 73337375, 73337533, 73337535, 73337537, 73337553, 73337555,
       73337557, 73337573, 73337575, 73337577, 73337735, 73337753, 73337755, 73337757, 73337775, 73353333, 73353335,
       73353337, 73353353, 73353355, 73353357, 73353373, 73353375, 73353377, 73353533, 73353535, 73353537, 73353553,
       73353555, 73353557, 73353573, 73353575, 73353577, 73353733, 73353735, 73353737, 73353753, 73353755, 73353757,
       73353773, 73353775, 73353777, 73355333, 73355335, 73355337, 73355353, 73355355, 73355357, 73355373, 73355375,
       73355377, 73355533, 73355535, 73355537, 73355553, 73355555, 73355557, 73355573, 73355575, 73355577, 73355733,
       73355735, 73355737, 73355753, 73355755, 73355757, 73355773, 73355775, 73355777, 73357333, 73357335, 73357337,
       73357353, 73357355, 73357357, 73357373, 73357375, 73357377, 73357533, 73357535, 73357537, 73357553, 73357555,
       73357557, 73357573, 73357575, 73357577, 73357733, 73357735, 73357737, 73357753, 73357755, 73357757, 73357773,
       73357775, 73357777, 73373335, 73373353, 73373355, 73373357, 73373375, 73373533, 73373535, 73373537, 73373553,
       73373555, 73373557, 73373573, 73373575, 73373577, 73373735, 73373753, 73373755, 73373757, 73373775, 73375333,
       73375335, 73375337, 73375353, 73375355, 73375357, 73375373, 73375375, 73375377, 73375533, 73375535, 73375537,
       73375553, 73375555, 73375557, 73375573, 73375575, 73375577, 73375733, 73375735, 73375737, 73375753, 73375755,
       73375757, 73375773, 73375775, 73375777, 73377335, 73377353, 73377355, 73377357, 73377375, 73377533, 73377535,
       73377537, 73377553, 73377555, 73377557, 73377573, 73377575, 73377577, 73377735, 73377753, 73377755, 73377757,
       73377775, 73533333, 73533335, 73533337, 73533353, 73533355, 73533357, 73533373, 73533375, 73533377, 73533533,
       73533535, 73533537, 73533553, 73533555, 73533557, 73533573, 73533575, 73533577, 73533733, 73533735, 73533737,
       73533753, 73533755, 73533757, 73533773, 73533775, 73533777, 73535333, 73535335, 73535337, 73535353, 73535355,
       73535357, 73535373, 73535375, 73535377, 73535533, 73535535, 73535537, 73535553, 73535555, 73535557, 73535573,
       73535575, 73535577, 73535733, 73535735, 73535737, 73535753, 73535755, 73535757, 73535773, 73535775, 73535777,
       73537333, 73537335, 73537337, 73537353, 73537355, 73537357, 73537373, 73537375, 73537377, 73537533, 73537535,
       73537537, 73537553, 73537555, 73537557, 73537573, 73537575, 73537577, 73537733, 73537735, 73537737, 73537753,
       73537755, 73537757, 73537773, 73537775, 73537777, 73553333, 73553335, 73553337, 73553353, 73553355, 73553357,
       73553373, 73553375, 73553377, 73553533, 73553535, 73553537, 73553553, 73553555, 73553557, 73553573, 73553575,
       73553577, 73553733, 73553735, 73553737, 73553753, 73553755, 73553757, 73553773, 73553775, 73553777, 73555333,
       73555335, 73555337, 73555353, 73555355, 73555357, 73555373, 73555375, 73555377, 73555533, 73555535, 73555537,
       73555553, 73555555, 73555557, 73555573, 73555575, 73555577, 73555733, 73555735, 73555737, 73555753, 73555755,
       73555757, 73555773, 73555775, 73555777, 73557333, 73557335, 73557337, 73557353, 73557355, 73557357, 73557373,
       73557375, 73557377, 73557533, 73557535, 73557537, 73557553, 73557555, 73557557, 73557573, 73557575, 73557577,
       73557733, 73557735, 73557737, 73557753, 73557755, 73557757, 73557773, 73557775, 73557777, 73573333, 73573335,
       73573337, 73573353, 73573355, 73573357, 73573373, 73573375, 73573377, 73573533, 73573535, 73573537, 73573553,
       73573555, 73573557, 73573573, 73573575, 73573577, 73573733, 73573735, 73573737, 73573753, 73573755, 73573757,
       73573773, 73573775, 73573777, 73575333, 73575335, 73575337, 73575353, 73575355, 73575357, 73575373, 73575375,
       73575377, 73575533, 73575535, 73575537, 73575553, 73575555, 73575557, 73575573, 73575575, 73575577, 73575733,
       73575735, 73575737, 73575753, 73575755, 73575757, 73575773, 73575775, 73575777, 73577333, 73577335, 73577337,
       73577353, 73577355, 73577357, 73577373, 73577375, 73577377, 73577533, 73577535, 73577537, 73577553, 73577555,
       73577557, 73577573, 73577575, 73577577, 73577733, 73577735, 73577737, 73577753, 73577755, 73577757, 73577773,
       73577775, 73577777, 73733335, 73733353, 73733355, 73733357, 73733375, 73733533, 73733535, 73733537, 73733553,
       73733555, 73733557, 73733573, 73733575, 73733577, 73733735, 73733753, 73733755, 73733757, 73733775, 73735333,
       73735335, 73735337, 73735353, 73735355, 73735357, 73735373, 73735375, 73735377, 73735533, 73735535, 73735537,
       73735553, 73735555, 73735557, 73735573, 73735575, 73735577, 73735733, 73735735, 73735737, 73735753, 73735755,
       73735757, 73735773, 73735775, 73735777, 73737335, 73737353, 73737355, 73737357, 73737375, 73737533, 73737535,
       73737537, 73737553, 73737555, 73737557, 73737573, 73737575, 73737577, 73737735, 73737753, 73737755, 73737757,
       73737775, 73753333, 73753335, 73753337, 73753353, 73753355, 73753357, 73753373, 73753375, 73753377, 73753533,
       73753535, 73753537, 73753553, 73753555, 73753557, 73753573, 73753575, 73753577, 73753733, 73753735, 73753737,
       73753753, 73753755, 73753757, 73753773, 73753775, 73753777, 73755333, 73755335, 73755337, 73755353, 73755355,
       73755357, 73755373, 73755375, 73755377, 73755533, 73755535, 73755537, 73755553, 73755555, 73755557, 73755573,
       73755575, 73755577, 73755733, 73755735, 73755737, 73755753, 73755755, 73755757, 73755773, 73755775, 73755777,
       73757333, 73757335, 73757337, 73757353, 73757355, 73757357, 73757373, 73757375, 73757377, 73757533, 73757535,
       73757537, 73757553, 73757555, 73757557, 73757573, 73757575, 73757577, 73757733, 73757735, 73757737, 73757753,
       73757755, 73757757, 73757773, 73757775, 73757777, 73773335, 73773353, 73773355, 73773357, 73773375, 73773533,
       73773535, 73773537, 73773553, 73773555, 73773557, 73773573, 73773575, 73773577, 73773735, 73773753, 73773755,
       73773757, 73773775, 73775333, 73775335, 73775337, 73775353, 73775355, 73775357, 73775373, 73775375, 73775377,
       73775533, 73775535, 73775537, 73775553, 73775555, 73775557, 73775573, 73775575, 73775577, 73775733, 73775735,
       73775737, 73775753, 73775755, 73775757, 73775773, 73775775, 73775777, 73777335, 73777353, 73777355, 73777357,
       73777375, 73777533, 73777535, 73777537, 73777553, 73777555, 73777557, 73777573, 73777575, 73777577, 73777735,
       73777753, 73777755, 73777757, 73777775, 75333333, 75333335, 75333337, 75333353, 75333355, 75333357, 75333373,
       75333375, 75333377, 75333533, 75333535, 75333537, 75333553, 75333555, 75333557, 75333573, 75333575, 75333577,
       75333733, 75333735, 75333737, 75333753, 75333755, 75333757, 75333773, 75333775, 75333777, 75335333, 75335335,
       75335337, 75335353, 75335355, 75335357, 75335373, 75335375, 75335377, 75335533, 75335535, 75335537, 75335553,
       75335555, 75335557, 75335573, 75335575, 75335577, 75335733, 75335735, 75335737, 75335753, 75335755, 75335757,
       75335773, 75335775, 75335777, 75337333, 75337335, 75337337, 75337353, 75337355, 75337357, 75337373, 75337375,
       75337377, 75337533, 75337535, 75337537, 75337553, 75337555, 75337557, 75337573, 75337575, 75337577, 75337733,
       75337735, 75337737, 75337753, 75337755, 75337757, 75337773, 75337775, 75337777, 75353333, 75353335, 75353337,
       75353353, 75353355, 75353357, 75353373, 75353375, 75353377, 75353533, 75353535, 75353537, 75353553, 75353555,
       75353557, 75353573, 75353575, 75353577, 75353733, 75353735, 75353737, 75353753, 75353755, 75353757, 75353773,
       75353775, 75353777, 75355333, 75355335, 75355337, 75355353, 75355355, 75355357, 75355373, 75355375, 75355377,
       75355533, 75355535, 75355537, 75355553, 75355555, 75355557, 75355573, 75355575, 75355577, 75355733, 75355735,
       75355737, 75355753, 75355755, 75355757, 75355773, 75355775, 75355777, 75357333, 75357335, 75357337, 75357353,
       75357355, 75357357, 75357373, 75357375, 75357377, 75357533, 75357535, 75357537, 75357553, 75357555, 75357557,
       75357573, 75357575, 75357577, 75357733, 75357735, 75357737, 75357753, 75357755, 75357757, 75357773, 75357775,
       75357777, 75373333, 75373335, 75373337, 75373353, 75373355, 75373357, 75373373, 75373375, 75373377, 75373533,
       75373535, 75373537, 75373553, 75373555, 75373557, 75373573, 75373575, 75373577, 75373733, 75373735, 75373737,
       75373753, 75373755, 75373757, 75373773, 75373775, 75373777, 75375333, 75375335, 75375337, 75375353, 75375355,
       75375357, 75375373, 75375375, 75375377, 75375533, 75375535, 75375537, 75375553, 75375555, 75375557, 75375573,
       75375575, 75375577, 75375733, 75375735, 75375737, 75375753, 75375755, 75375757, 75375773, 75375775, 75375777,
       75377333, 75377335, 75377337, 75377353, 75377355, 75377357, 75377373, 75377375, 75377377, 75377533, 75377535,
       75377537, 75377553, 75377555, 75377557, 75377573, 75377575, 75377577, 75377733, 75377735, 75377737, 75377753,
       75377755, 75377757, 75377773, 75377775, 75377777, 75533333, 75533335, 75533337, 75533353, 75533355, 75533357,
       75533373, 75533375, 75533377, 75533533, 75533535, 75533537, 75533553, 75533555, 75533557, 75533573, 75533575,
       75533577, 75533733, 75533735, 75533737, 75533753, 75533755, 75533757, 75533773, 75533775, 75533777, 75535333,
       75535335, 75535337, 75535353, 75535355, 75535357, 75535373, 75535375, 75535377, 75535533, 75535535, 75535537,
       75535553, 75535555, 75535557, 75535573, 75535575, 75535577, 75535733, 75535735, 75535737, 75535753, 75535755,
       75535757, 75535773, 75535775, 75535777, 75537333, 75537335, 75537337, 75537353, 75537355, 75537357, 75537373,
       75537375, 75537377, 75537533, 75537535, 75537537, 75537553, 75537555, 75537557, 75537573, 75537575, 75537577,
       75537733, 75537735, 75537737, 75537753, 75537755, 75537757, 75537773, 75537775, 75537777, 75553333, 75553335,
       75553337, 75553353, 75553355, 75553357, 75553373, 75553375, 75553377, 75553533, 75553535, 75553537, 75553553,
       75553555, 75553557, 75553573, 75553575, 75553577, 75553733, 75553735, 75553737, 75553753, 75553755, 75553757,
       75553773, 75553775, 75553777, 75555333, 75555335, 75555337, 75555353, 75555355, 75555357, 75555373, 75555375,
       75555377, 75555533, 75555535, 75555537, 75555553, 75555573, 75555733, 75555735, 75555737, 75555753, 75555773,
       75557333, 75557335, 75557337, 75557353, 75557355, 75557357, 75557373, 75557375, 75557377, 75557533, 75557535,
       75557537, 75557553, 75557573, 75557733, 75557735, 75557737, 75557753, 75557773, 75573333, 75573335, 75573337,
       75573353, 75573355, 75573357, 75573373, 75573375, 75573377, 75573533, 75573535, 75573537, 75573553, 75573555,
       75573557, 75573573, 75573575, 75573577, 75573733, 75573735, 75573737, 75573753, 75573755, 75573757, 75573773,
       75573775, 75573777, 75575333, 75575335, 75575337, 75575353, 75575355, 75575357, 75575373, 75575375, 75575377,
       75575533, 75575535, 75575537, 75575553, 75575573, 75575733, 75575735, 75575737, 75575753, 75575773, 75577333,
       75577335, 75577337, 75577353, 75577355, 75577357, 75577373, 75577375, 75577377, 75577533, 75577535, 75577537,
       75577553, 75577573, 75577733, 75577735, 75577737, 75577753, 75577773, 75733333, 75733335, 75733337, 75733353,
       75733355, 75733357, 75733373, 75733375, 75733377, 75733533, 75733535, 75733537, 75733553, 75733555, 75733557,
       75733573, 75733575, 75733577, 75733733, 75733735, 75733737, 75733753, 75733755, 75733757, 75733773, 75733775,
       75733777, 75735333, 75735335, 75735337, 75735353, 75735355, 75735357, 75735373, 75735375, 75735377, 75735533,
       75735535, 75735537, 75735553, 75735555, 75735557, 75735573, 75735575, 75735577, 75735733, 75735735, 75735737,
       75735753, 75735755, 75735757, 75735773, 75735775, 75735777, 75737333, 75737335, 75737337, 75737353, 75737355,
       75737357, 75737373, 75737375, 75737377, 75737533, 75737535, 75737537, 75737553, 75737555, 75737557, 75737573,
       75737575, 75737577, 75737733, 75737735, 75737737, 75737753, 75737755, 75737757, 75737773, 75737775, 75737777,
       75753333, 75753335, 75753337, 75753353, 75753355, 75753357, 75753373, 75753375, 75753377, 75753533, 75753535,
       75753537, 75753553, 75753555, 75753557, 75753573, 75753575, 75753577, 75753733, 75753735, 75753737, 75753753,
       75753755, 75753757, 75753773, 75753775, 75753777, 75755333, 75755335, 75755337, 75755353, 75755355, 75755357,
       75755373, 75755375, 75755377, 75755533, 75755535, 75755537, 75755553, 75755573, 75755733, 75755735, 75755737,
       75755753, 75755773, 75757333, 75757335, 75757337, 75757353, 75757355, 75757357, 75757373, 75757375, 75757377,
       75757533, 75757535, 75757537, 75757553, 75757573, 75757733, 75757735, 75757737, 75757753, 75757773, 75773333,
       75773335, 75773337, 75773353, 75773355, 75773357, 75773373, 75773375, 75773377, 75773533, 75773535, 75773537,
       75773553, 75773555, 75773557, 75773573, 75773575, 75773577, 75773733, 75773735, 75773737, 75773753, 75773755,
       75773757, 75773773, 75773775, 75773777, 75775333, 75775335, 75775337, 75775353, 75775355, 75775357, 75775373,
       75775375, 75775377, 75775533, 75775535, 75775537, 75775553, 75775573, 75775733, 75775735, 75775737, 75775753,
       75775773, 75777333, 75777335, 75777337, 75777353, 75777355, 75777357, 75777373, 75777375, 75777377, 75777533,
       75777535, 75777537, 75777553, 75777573, 75777733, 75777735, 75777737, 75777753, 75777773, 77333335, 77333353,
       77333355, 77333357, 77333375, 77333533, 77333535, 77333537, 77333553, 77333555, 77333557, 77333573, 77333575,
       77333577, 77333735, 77333753, 77333755, 77333757, 77333775, 77335333, 77335335, 77335337, 77335353, 77335355,
       77335357, 77335373, 77335375, 77335377, 77335533, 77335535, 77335537, 77335553, 77335555, 77335557, 77335573,
       77335575, 77335577, 77335733, 77335735, 77335737, 77335753, 77335755, 77335757, 77335773, 77335775, 77335777,
       77337335, 77337353, 77337355, 77337357, 77337375, 77337533, 77337535, 77337537, 77337553, 77337555, 77337557,
       77337573, 77337575, 77337577, 77337735, 77337753, 77337755, 77337757, 77337775, 77353333, 77353335, 77353337,
       77353353, 77353355, 77353357, 77353373, 77353375, 77353377, 77353533, 77353535, 77353537, 77353553, 77353555,
       77353557, 77353573, 77353575, 77353577, 77353733, 77353735, 77353737, 77353753, 77353755, 77353757, 77353773,
       77353775, 77353777, 77355333, 77355335, 77355337, 77355353, 77355355, 77355357, 77355373, 77355375, 77355377,
       77355533, 77355535, 77355537, 77355553, 77355555, 77355557, 77355573, 77355575, 77355577, 77355733, 77355735,
       77355737, 77355753, 77355755, 77355757, 77355773, 77355775, 77355777, 77357333, 77357335, 77357337, 77357353,
       77357355, 77357357, 77357373, 77357375, 77357377, 77357533, 77357535, 77357537, 77357553, 77357555, 77357557,
       77357573, 77357575, 77357577, 77357733, 77357735, 77357737, 77357753, 77357755, 77357757, 77357773, 77357775,
       77357777, 77373335, 77373353, 77373355, 77373357, 77373375, 77373533, 77373535, 77373537, 77373553, 77373555,
       77373557, 77373573, 77373575, 77373577, 77373735, 77373753, 77373755, 77373757, 77373775, 77375333, 77375335,
       77375337, 77375353, 77375355, 77375357, 77375373, 77375375, 77375377, 77375533, 77375535, 77375537, 77375553,
       77375555, 77375557, 77375573, 77375575, 77375577, 77375733, 77375735, 77375737, 77375753, 77375755, 77375757,
       77375773, 77375775, 77375777, 77377335, 77377353, 77377355, 77377357, 77377375, 77377533, 77377535, 77377537,
       77377553, 77377555, 77377557, 77377573, 77377575, 77377577, 77377735, 77377753, 77377755, 77377757, 77377775,
       77533333, 77533335, 77533337, 77533353, 77533355, 77533357, 77533373, 77533375, 77533377, 77533533, 77533535,
       77533537, 77533553, 77533555, 77533557, 77533573, 77533575, 77533577, 77533733, 77533735, 77533737, 77533753,
       77533755, 77533757, 77533773, 77533775, 77533777, 77535333, 77535335, 77535337, 77535353, 77535355, 77535357,
       77535373, 77535375, 77535377, 77535533, 77535535, 77535537, 77535553, 77535555, 77535557, 77535573, 77535575,
       77535577, 77535733, 77535735, 77535737, 77535753, 77535755, 77535757, 77535773, 77535775, 77535777, 77537333,
       77537335, 77537337, 77537353, 77537355, 77537357, 77537373, 77537375, 77537377, 77537533, 77537535, 77537537,
       77537553, 77537555, 77537557, 77537573, 77537575, 77537577, 77537733, 77537735, 77537737, 77537753, 77537755,
       77537757, 77537773, 77537775, 77537777, 77553333, 77553335, 77553337, 77553353, 77553355, 77553357, 77553373,
       77553375, 77553377, 77553533, 77553535, 77553537, 77553553, 77553555, 77553557, 77553573, 77553575, 77553577,
       77553733, 77553735, 77553737, 77553753, 77553755, 77553757, 77553773, 77553775, 77553777, 77555333, 77555335,
       77555337, 77555353, 77555355, 77555357, 77555373, 77555375, 77555377, 77555533, 77555535, 77555537, 77555553,
       77555573, 77555733, 77555735, 77555737, 77555753, 77555773, 77557333, 77557335, 77557337, 77557353, 77557355,
       77557357, 77557373, 77557375, 77557377, 77557533, 77557535, 77557537, 77557553, 77557573, 77557733, 77557735,
       77557737, 77557753, 77557773, 77573333, 77573335, 77573337, 77573353, 77573355, 77573357, 77573373, 77573375,
       77573377, 77573533, 77573535, 77573537, 77573553, 77573555, 77573557, 77573573, 77573575, 77573577, 77573733,
       77573735, 77573737, 77573753, 77573755, 77573757, 77573773, 77573775, 77573777, 77575333, 77575335, 77575337,
       77575353, 77575355, 77575357, 77575373, 77575375, 77575377, 77575533, 77575535, 77575537, 77575553, 77575573,
       77575733, 77575735, 77575737, 77575753, 77575773, 77577333, 77577335, 77577337, 77577353, 77577355, 77577357,
       77577373, 77577375, 77577377, 77577533, 77577535, 77577537, 77577553, 77577573, 77577733, 77577735, 77577737,
       77577753, 77577773, 77733335, 77733353, 77733355, 77733357, 77733375, 77733533, 77733535, 77733537, 77733553,
       77733555, 77733557, 77733573, 77733575, 77733577, 77733735, 77733753, 77733755, 77733757, 77733775, 77735333,
       77735335, 77735337, 77735353, 77735355, 77735357, 77735373, 77735375, 77735377, 77735533, 77735535, 77735537,
       77735553, 77735555, 77735557, 77735573, 77735575, 77735577, 77735733, 77735735, 77735737, 77735753, 77735755,
       77735757, 77735773, 77735775, 77735777, 77737335, 77737353, 77737355, 77737357, 77737375, 77737533, 77737535,
       77737537, 77737553, 77737555, 77737557, 77737573, 77737575, 77737577, 77737735, 77737753, 77737755, 77737757,
       77737775, 77753333, 77753335, 77753337, 77753353, 77753355, 77753357, 77753373, 77753375, 77753377, 77753533,
       77753535, 77753537, 77753553, 77753555, 77753557, 77753573, 77753575, 77753577, 77753733, 77753735, 77753737,
       77753753, 77753755, 77753757, 77753773, 77753775, 77753777, 77755333, 77755335, 77755337, 77755353, 77755355,
       77755357, 77755373, 77755375, 77755377, 77755533, 77755535, 77755537, 77755553, 77755573, 77755733, 77755735,
       77755737, 77755753, 77755773, 77757333, 77757335, 77757337, 77757353, 77757355, 77757357, 77757373, 77757375,
       77757377, 77757533, 77757535, 77757537, 77757553, 77757573, 77757733, 77757735, 77757737, 77757753, 77757773,
       77773335, 77773353, 77773355, 77773357, 77773375, 77773533, 77773535, 77773537, 77773553, 77773555, 77773557,
       77773573, 77773575, 77773577, 77773735, 77773753, 77773755, 77773757, 77773775, 77775333, 77775335, 77775337,
       77775353, 77775355, 77775357, 77775373, 77775375, 77775377, 77775533, 77775535, 77775537, 77775553, 77775573,
       77775733, 77775735, 77775737, 77775753, 77775773, 77777335, 77777353, 77777355, 77777357, 77777375, 77777533,
       77777535, 77777537, 77777553, 77777573, 77777735, 77777753]

index = bisect.bisect_left(lst, N)
print(index)