aboutsummaryrefslogtreecommitdiff
path: root/execs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-18 06:37:18 +0000
committerAkshay <[email protected]>2020-12-18 06:37:18 +0000
commit9a503340b2996b6da4b044800dbdc930bf0466ed (patch)
treeb1df1dc539ac45fc7f85ca95775d76babc8a3d33 /execs
parent526382de827b70731f704b8ecd49887cd238e06f (diff)
add day18HEADmaster
Diffstat (limited to 'execs')
-rw-r--r--execs/Day17.hs10
-rw-r--r--execs/Day18.hs399
2 files changed, 404 insertions, 5 deletions
diff --git a/execs/Day17.hs b/execs/Day17.hs
index bb632e0..ccedffe 100644
--- a/execs/Day17.hs
+++ b/execs/Day17.hs
@@ -2,7 +2,7 @@ module Main where
2 2
3import Control.Monad 3import Control.Monad
4import Data.Map (Map) 4import Data.Map (Map)
5import qualified Data.Map as Map 5import qualified Data.Map as M
6import Data.Maybe 6import Data.Maybe
7import Utils 7import Utils
8 8
@@ -12,7 +12,7 @@ toBool '#' = True
12toBool '.' = False 12toBool '.' = False
13 13
14gridMap :: String -> Map Pos Bool 14gridMap :: String -> Map Pos Bool
15gridMap s = Map.fromList 15gridMap s = M.fromList
16 [((x,y,0,0), toBool a) 16 [((x,y,0,0), toBool a)
17 | (y, row) <- zip [0..] rows 17 | (y, row) <- zip [0..] rows
18 , (x, a) <- zip [0..] row 18 , (x, a) <- zip [0..] row
@@ -35,13 +35,13 @@ convert False 3 = True
35convert _ _ = False 35convert _ _ = False
36 36
37doStep :: Map Pos Bool -> Map Pos Bool 37doStep :: Map Pos Bool -> Map Pos Bool
38doStep m = Map.mapWithKey fn $ m <> Map.fromList [(p, False) | p <- concatMap around (Map.keys m)] 38doStep m = M.mapWithKey fn $ m <> M.fromList [(p, False) | p <- concatMap around (M.keys m)]
39 where fn pos v = convert v n 39 where fn pos v = convert v n
40 where n = howMany id $ map (fromMaybe False . flip Map.lookup m) $ around pos 40 where n = howMany id $ map (fromMaybe False . flip M.lookup m) $ around pos
41 41
42main :: IO () 42main :: IO ()
43main = do 43main = do
44 n <- readFile "input/17" 44 n <- readFile "input/17"
45 let grid = gridMap n 45 let grid = gridMap n
46 print $ Map.size $ Map.filter id (iterate doStep grid !! 6) 46 print $ M.size $ M.filter id (iterate doStep grid !! 6)
47 47
diff --git a/execs/Day18.hs b/execs/Day18.hs
new file mode 100644
index 0000000..8a33cba
--- /dev/null
+++ b/execs/Day18.hs
@@ -0,0 +1,399 @@
1module Main where
2
3import Prelude hiding ((*))
4
5-- part 1
6-- infixl 6 *
7
8-- part 2
9infixl 5 *
10a * b = product [a, b]
11
12main :: IO ()
13main = print $ sum ls
14
15ls =
16 [ 9 + 2 * ((7 + 9 + 5 + 7) * 3 + (5 * 3 * 6 * 5 + 6) + (9 * 4 + 9 * 6 + 9)) * 8 + 5
17 , (5 * 2 * 2 + (3 * 8 * 9 * 7) * 3 * 9) * (7 + 3 + (5 + 4 + 8 + 6) + 3 + 2 + 2) * 4 * 8
18 , 2 + 6 * (2 * (2 * 6) * 3 + (7 + 2 * 4 + 7)) * 8 + 5 * 4
19 , 7 + 5 + (8 * 6 + 8) * 6 + (4 * 3 + 5 * 8 + 7 * 9) + 5
20 , ((4 * 8 + 2 + 9 * 3 * 7) * (3 + 6 + 3 * 2 * 7 + 4) + 2 * (9 * 5) * 4 * 3) + 9 + (3 + 9 * 2 + 9 + (4 * 3) * (4 + 4 + 7 * 5 * 2 * 9)) * 4
21 , (8 + 8 + 3) * 7 + (7 * 7 + 7)
22 , 9 + ((8 * 2 * 6 + 2 + 6) * 6 + 3 + 2 * 9) * 3 * ((7 * 4 + 6) * 5 * 6 + 4 * 5 + 5) + 2 + 2
23 , ((3 * 3 * 5 + 7 + 5 + 8) + 7 + 2 * (4 + 9 * 8 + 7 * 2)) + 6 + 3 * 7 + 6 + 9
24 , (6 * 2 * 7) + (6 * 9 * 5 + 2 + (2 * 6 * 3) * 7) * (5 + 9 + 8 + 6 * 6) + 2
25 , 2 * 4 * 8 + 9 + ((9 + 5) + 9 * 7) * (7 * 7 * (2 * 5 + 2 + 4 + 6) * 5)
26 , 2 * 3 * 8 * (3 * 7 * 8 * 5) + 4
27 , 6 + ((8 * 3) * 2 * (7 * 2 + 5 + 2) + (9 * 2) * (2 + 3 * 9) * (5 + 9)) * 2 + 9
28 , 3 + 7 * 9 * 3 * (4 * 7 * 8 * 8 + 2)
29 , (5 + 2 * 6 + 4 * 7) * (4 * 5 + 4 * 3 * 9) * (9 * 7) + 3 + 7
30 , (5 + 6 + 8 + 8 * 2) * 2
31 , 9 + 2 * 4 + (9 + 2 + 9 + 4)
32 , 7 + 6 + (3 + 4 + 9 * 2 + (9 * 3 * 5 * 5 * 3)) * 5 + (8 + 6 * 8 * 4 + 5) * (3 + (6 + 7 + 5 + 4))
33 , 6 + 3 + 2 * ((7 + 3 + 8) + 2 + (9 * 6 + 4) * 3) + 3
34 , 8 + (3 + (7 + 7 + 5 + 3 + 7) * 9 + (4 + 6 + 4 + 6 + 3) + (9 + 3 + 8 * 6)) + 9 * (3 + 7 + 9 * (6 * 8) + 7) + (8 * 4)
35 , 4 + 8 * 2 + (6 + 6 * (7 * 7 + 3 + 6 * 6) + (9 * 4 + 9 * 3 * 6 + 7) + 6) + ((3 * 5 * 6 * 8 + 3) * 3 * (5 + 2 + 5 + 9) + (8 * 5 + 5 + 6 + 6) * 5 + 2)
36 , 9 + ((4 * 6 * 8 + 8 * 2 * 3) + 3)
37 , 2 * ((6 + 4 + 3) * 8 + 2) * 9 + 6
38 , 9 * (5 * 8 + 6) + 3 * 4 * 2 * 8
39 , 2 + (2 + 8 * (3 + 6 + 7 * 5) + 2 + 3 + 2)
40 , 8 * 8 + (3 + 7 + 2 * 3 * 3) * 6 + 7
41 , (4 * 6 * 4 * 4 * 4) * 6 * (2 * 2 + 7 * (5 + 9 + 2) + (3 * 6 + 6) + 7) + 5 + 7 + 8
42 , 5 + (7 + 2 * 9) * (4 * 5 + 8 * 4 + 4) * 9 * 6
43 , 5 + 7 * (4 * 7)
44 , 4 + (8 * 6)
45 , 9 + 3 * 6 + (7 * (4 + 9 + 2) * 5)
46 , 5 + 4 * 6 + 2 + 8 + (7 + 5 + (6 * 8 + 2 * 3))
47 , 5 + (6 + 9 + (5 * 4 + 5) + 3 * 6 + 6)
48 , 6 + 5 + 5 + ((2 + 8 * 8 * 8) + (8 * 8) * (9 + 6 * 6 + 7 * 5) * 8 * 9) * 4 * 3
49 , ((2 + 5 * 9) * 3 * 9 + (9 + 6 + 3) * 9) * 4 * 9 * 7 * 6
50 , 5 + (2 + (3 * 4 * 4) * 5 + 4 * 9 * (5 + 7 * 3))
51 , 3 + 4 + 6 + 5 + 4
52 , 2 * 4 + 6
53 , 2 + 2 + (7 * (5 + 3 * 5 * 3 + 8 * 7) * 7 + (8 * 7 * 7)) + (8 * 9 * 5) + 8
54 , 3 * 8 + 5 + 4 * (3 + (9 + 4 + 3) + (7 + 6 * 4 + 9 + 9 + 7) + (9 * 4 + 7 + 7 * 9) * (5 * 7 * 3 * 7 + 9 + 2) + 4)
55 , 5 + 6 + (8 * 4 * 7) + 5 * ((8 * 8 + 5 + 9 + 2 + 9) + 3 + 5 * 9) + (3 + (6 * 2 * 3 * 7) + 5 + 3 * 8)
56 , 6 * 4 + 8 + (6 * 4 * 8 + 4) * 6 + 4
57 , 2 * (9 + 9 + (3 + 2 + 6) * 7 + 5 * 4) + 2 + 7 * 7 * 2
58 , 6 + 3 * 6 * 7 * (2 + (9 + 7 * 5 + 9 * 3 + 4) + (5 + 8 * 6) + 2 * (6 * 6 + 5 * 6) + 4) + 4
59 , (9 * 8 * 9 + 7 * 8 * 6) + 3
60 , (6 + 8 + 9) + 4 + (6 + (4 + 4 + 2 + 3 + 6 * 3) + (4 * 3 + 7 * 5 * 6) * 9 + 9) * 3
61 , (3 + 6) + (3 + 4) + 3 + 4 * 4 + 2
62 , ((9 + 2 * 2) * 7 + 6) * 5 + 9 * 6 * (3 * 4 + 2 + (2 * 7) * 7 + 2) * ((4 + 3) + 8 + (4 + 2 * 2) + 8 + 8)
63 , 2 + ((7 + 8) * 2 + 6 + 3 * 7 + 9)
64 , 4 * (2 * (2 + 6 * 7 + 6) + (9 * 7 + 5 * 7 * 2))
65 , (4 * (3 + 9 + 2 * 7 * 7 * 5) + 7 + 7 * (8 * 2 + 7 * 4)) + 9 + 6
66 , ((5 + 3 * 5 * 4) + 7 + 9 * 3 + 4 + 5) + 2
67 , 4 * 3 + 2 * 4 * 7 * 3
68 , 6 + ((2 + 5 * 6 * 6 * 9) + 7 * 8 + (8 * 4 + 7 * 3)) + 3 * 2
69 , 5 * 4 * 9 + 2 * (2 * (8 + 5 + 7 + 3 * 8) + 4 * 3 * 9) * 9
70 , 2 * 7 + ((4 * 7 + 6 * 2 + 8 + 9) + (6 + 2 * 8 + 5))
71 , (8 * 2 + 4 + (6 + 5 * 4) * 3 * 6) * 4
72 , ((5 + 7 * 6) + 2 * 6 + 3) + 6 + 2 + 4 * 9
73 , ((3 * 8 + 2) + 5 + (8 + 8 * 3 + 9 + 6 + 3)) * 3
74 , 3 + 6 + 6 + (6 + 5 + 8) * (4 * 5 * 2 * 5)
75 , 3 + (2 + 2 + 6 * 8 * 8) + (7 * 3 + 3 + 7 * 5 + 7) + (6 * 6 + 4 * 7 + 6)
76 , ((4 + 6 * 7) * (5 * 4 + 4 + 4 + 2 + 8)) * 2 + (9 * (8 + 6 * 9)) + ((6 + 8 * 2) * 8 * 2)
77 , 5 + 2 + (4 * 9 * 4 * 2 + 3 * 4) + 8
78 , ((2 * 4) + (6 * 9) * 5) * 5 + 6
79 , ((5 + 3) * (3 + 9 * 7) * 5 * 6 + 3) * 3
80 , 3 + 4 * 5 + 6 * 7
81 , (8 + 4 * 6 + 7 * 6) + (2 * 3 * 3 * 2 * 3) * 2 * 3 + 9 * 5
82 , ((6 + 9 + 4 + 9 * 7) + (3 + 4) + 7 + 2 + (3 * 9 + 4 * 5 + 9) * 4) * 4 + 7
83 , 8 * 6 * 9 + (9 + 3 + (3 + 5 * 8 + 7 * 9) * 5 * (4 + 6 * 9 + 3) + 6) + 4 + 6
84 , 9 * 2 * ((6 * 3 + 6) + 5) + (5 + 8 * 9 + 5 + (8 * 6))
85 , ((9 * 7 * 4 * 7 + 3 + 7) + 4 + 5) * 8 + 6 + 3 * 4 + ((9 * 7 * 8 * 3 * 8) + 3 + 5 * 6 + 2)
86 , 9 + (8 + 2 * 9 + 8) * (8 * 5 * 4 + 6 + 2 * (4 + 9 * 4 + 5))
87 , 3 + 7 * 5 * 4
88 , (8 * (9 + 5 * 6) * (9 + 6 * 9 + 7 + 5) + 7 + 4 * 6) * 4
89 , (4 * (5 * 5 * 5 * 7) + 3) * (6 * 3) + 3 + 4
90 , 3 + ((7 + 2 + 4) + 9 + 4) * (2 * 9 + 4 * 3 * 6) + 8 * 9 + 8
91 , 3 * (7 * 9 * 5 + 2 * 5 * (5 + 5)) + 8 * 5
92 , 5 * ((2 + 7 + 8 * 9) + (3 + 4 + 6 + 4 + 4 * 4) * 4 + (5 * 8 + 3) * 3 * (9 + 9 + 6 * 5 + 6)) * 5
93 , (5 * 7 + 2 + 8) + 8
94 , (4 + 6 * (2 + 8 + 5 * 6 + 7 + 4) * 3 + (6 + 4 + 7)) + (6 + 5 * 6) * 2 + (3 * 2 + 2 + 5 + 9 * 8)
95 , 5 * 2 + ((2 * 2 * 2 + 6) * (2 * 3 * 3 + 6 + 9 + 6) * 8 * 8) * (8 + 5 * 4 + 9) + 2 * 4
96 , 4 * (6 + 9) + 8 + 3 + (5 + 2 + 8) + 5
97 , 9 * 6 * 6 + 5 * 7
98 , (2 * (6 * 9 * 8 + 3) + 3 * 3) * 3 + 8 * 7
99 , (3 * 7 * (9 * 2 + 4 + 5 * 4) + 2) + 3 + 3 + 7 * 8
100 , 8 * (9 * (7 * 9) + 2 + 2 * 9 * 9) + ((5 + 5 + 9 * 2 * 6 + 3) + 9 * 6)
101 , (9 + 8 + 5) + 5 + 9 + 4 * 5
102 , 8 + (7 * 6 * 5 + 3 * (8 * 5 + 9)) * 9 + 2 + 3 + 5
103 , (9 * 9 * 2 + (2 + 9 + 3 + 7) + 5) * 4 + 4 * (4 * 9 * 2 * 6) * 7
104 , 7 * 9 * (4 + 9 + 7 + 9 + 3 + 5) + 4 * (3 + 6) * 4
105 , 5 + ((3 + 6) * 8) * 2
106 , 7 + (2 * 3 * 5 + 8) + ((7 * 4 * 9 + 4 * 6 * 2) * 2) * 3 + 2
107 , 8 + (3 + 6 + (4 * 7 * 9 + 2 + 2)) * 6 + 4 * 4 + 9
108 , (4 * (3 + 2 * 6 * 3 + 5) * 4 + 9 + 8) + 7 * 7
109 , (8 + 7 * 9) + 7 + (4 * (7 * 2 * 7) * 2) + (6 + 8 * (3 * 7 + 3 + 3 * 2 * 2) + (8 * 4 * 6 + 3))
110 , 9 + 3 + ((7 + 4 * 3 + 6 + 4) * 6 * 2 + 7 * 4) * 5
111 , ((3 + 7) + 4) + 3 * 5 + (3 + 7 * 9 + 6 * 3 * 2)
112 , 7 + (4 + 4 + 9 * 5)
113 , ((5 + 3 * 7) + 6 + 8 + 2) + 3 * 8 * (3 + 9 * 6 + 4)
114 , 3 + 8 + 7 + ((3 * 8 + 7 * 4 * 5) + 3 * 8 * 9 * 4 + 3) * 7
115 , 5 * 3 * ((7 + 3 + 7 * 5 + 3 + 4) * (8 + 8 + 3 + 7 * 8 + 6)) * 6 + 4
116 , (4 * (6 + 3 * 7 * 4) + 7 * 8) + 8
117 , 6 * (8 + 6 + 5 * 4) + 3 + ((3 * 6 * 4 * 2 * 6) * 8) * 9 + 6
118 , (4 * (9 + 9 + 9 * 7 * 8 + 9) * (3 * 5 + 8 * 4 * 3) + 2 + 9 + 4) + (7 + 5 + (9 + 3 + 8) * (9 * 7 * 5 * 4) * 5) + 2 + 2 * 5 + (2 + 5 + 9 + (2 + 8 * 5 + 5 * 2 * 7) * 2 + (6 + 3 * 8 + 2 * 6))
119 , (4 * (7 * 3) + (6 + 3) * 6 + 6) + (6 * (8 + 2 + 8 * 4 * 7 * 5) + 7 + (5 * 9 * 5 + 9 * 2) * 7 + 8) * 5 + 2 + 6 * 4
120 , 6 * 9 + 8 * (7 * 4 + 5) + 6 * (5 * 8 * 4 * 2 + (3 * 6) + 6)
121 , 6 * 3 * (4 * 2) * 5
122 , 7 + 6 + (4 * 9 * 3 + 2 * 9 + 6) * 4 + 7 * 7
123 , (2 + (2 * 7 + 9 + 4)) * 9 * 8 * (3 + 9 * 6 * 9) * 4 * 9
124 , (8 * 6 + (3 + 8 * 5 + 6 + 9) * 7 + 6 * 7) + 6 + 4 + 8 * 3
125 , (4 * (7 * 9 + 5 + 7 + 2 + 7)) * (6 * (2 * 2) + 9 * 4 + 5) + (3 * 3 + 4 * (2 * 7 + 4) + 3) * 5 * 6 + 9
126 , 2 + (7 + 7) + 9 + ((9 * 2 + 2 * 8 * 5) + (2 + 3 * 2 + 8 + 9) * 3 + 7 * 4 + 2) + 3
127 , ((7 + 7 + 6) + 6 + 8 + (4 + 4 + 6 * 5 * 3 * 7)) + 6 * 7 * 9
128 , 2 * 9 + 9 * 6 * 2 + (8 * (3 * 3 * 7 * 6) * 4)
129 , 4 * (9 * 2 * 8 + 3 * 5) + 7
130 , 9 + 3 + 9 + 9 + 2 + (5 + 9 * 3 * 2 + 3)
131 , 6 + 7 + (2 + 5 + 2 + 8 * 4 * 8)
132 , (9 + 7 * 3) + 4 * 4
133 , 6 * 7 + 9 * (8 + 7 * 4) * 8
134 , (8 * 5) * 6 + 8 + (4 * 5) * 6
135 , 2 * 8 * 7 + (8 * (4 * 2 * 2 * 9 + 9) + (5 * 7 * 5 + 7)) * 8 + 5
136 , 5 * (5 * 8) + 8 + (9 * 8 * 2) * (5 + 4 * 3) * (4 * 7 * 6 + 2 + 4)
137 , 3 + 6 * 8 + (5 * (6 * 3) * 9 + 5 + 4 * 8)
138 , 7 * 2
139 , 8 * (7 + (7 * 8))
140 , 4 * ((8 * 2 + 2) + (9 * 5 * 2 + 3 + 6) * 6 * (3 + 5)) * 6 + 7 * 3 + 7
141 , 4 * 6 + 7 * ((3 * 5 * 4) * 7) * (2 + (7 * 3 * 4) * (5 + 3 + 6 * 8 + 7 + 4) * (5 + 7 + 7 + 3 * 3)) * 2
142 , (8 * 8 + 2 * 4 * 7) + 9 * 8 * 6 + (8 * 4 * 2)
143 , (4 * 8 + (6 * 7 + 5 + 7 + 4) + 8 + (9 + 3 * 8 + 8 + 6 + 9) * 3) * (4 * 4 + (6 * 7 + 7 * 9 + 9)) + 8
144 , 3 + (9 * 8 * 4 * 9 + 8 * 7) * 9 * 2
145 , 6 + 4 * (8 + (6 * 8) * 7 * 5) + 9 + 4
146 , (8 + 9 * (4 + 3 + 6 + 2 + 5 + 8) + 6) + 7 + 9 * 3 * ((7 * 8 * 6 * 5 + 4) + 7 * (9 + 2 + 9 + 8 * 4) + 8 * 4 + (8 * 8 * 2 + 9 * 4)) + 6
147 , (9 * 8 + 4 * (6 + 9 * 3 * 3 + 3 * 4) * 8 + 7) + 5 * (4 * 8 * (2 * 3 + 2) + 3 + 5 + 2) + ((2 * 6) * 8 + 6 * 4 + 8) + 6 + 9
148 , ((9 + 3 + 9 + 7) + 3) + 7 * ((8 + 6 * 7 * 4 * 7) * 8 * 8 + 2 + 6) + 3 * 8 * 4
149 , (5 + 3 * 2) + ((4 + 3 * 5 * 5) + 6 + 7) + 7 * 7 + 8
150 , 4 + (9 + 4 + (9 * 7 * 8) + 5 + (5 + 7 * 5 * 8) + 8) + (6 + 5 * 5 + 7 + 9 * 8) * 9 + (4 + 4 * 8) + (5 + 4)
151 , 3 * (3 * (6 + 5 * 5 + 4 + 9 + 9) * 8 + (6 * 3 * 2 * 5)) * (6 + 2) * (4 * 6 * 8 * 5 * 5 * 2)
152 , 4 + 7 * (6 + 2 * 3) + 9 * (3 * 3 + 8 + 5 * (8 * 7 + 3 * 5) + 8)
153 , 5 * (2 + 9 + 9 + 8 + 4 * (7 + 2 + 9 + 2 * 6 + 8)) + 2
154 , 5 + (7 * 8 + 8 + 7 + 3) * 2 + 2
155 , 3 + 8 * 8 * (9 * (7 + 5 * 5 * 7) * 6) * 2
156 , 6 + 8 + (3 + (5 * 8 * 6 + 4 + 3 + 4) + (2 * 7 + 4 * 4) + 5) * (4 + 8 * 6 + (9 * 6 + 7 * 3) * 9 * 3)
157 , 4 + 8 * (2 * 9 * 6 + (4 + 9) + 8) * 9 + 6
158 , 5 * 3 * (3 + 7 * 7 * 3 * (6 + 5 * 7)) + 8 * 9
159 , (2 + 8 + (6 * 8 + 5 * 5 * 2)) + 5 * (6 * 5 * 6)
160 , 4 * 5 + (7 * 4 * 3 + 7 * 7) * 8 + ((9 + 9 + 5 * 3 + 2) + (2 * 7 * 8 + 3) + 7 * 2 + (5 + 8 + 8))
161 , 7 * (4 * 2 * (8 * 8 * 7) * 3 * 9 * (2 * 4 * 3 + 2))
162 , 6 * 7 + 8 * 8 * (8 + 2 * 5 + 8 * 6 * (4 + 8 + 3 + 3 * 7)) + 6
163 , 8 + 2 * 2 + (7 + 8 + 5) * (6 + 9 * (4 * 6) + 3 + 8 * 7)
164 , 5 * ((3 + 8 + 4 * 4) * (4 * 5 * 8 * 8 + 8 + 8) + (8 + 7 * 9) + (6 + 5) + 2 * 9) * (7 + 8 * 7 * 4)
165 , (3 + 7) + 9
166 , 9 * 5 + 7 * (3 + (6 + 3)) + 5 * 8
167 , 2 + 6 * 5 + 6 + ((8 * 8 * 9 * 4 * 9 + 6) * 4 + 4 * 2)
168 , 3 * 2 * (6 * 8) * 8 * (2 * 8 * 8 + (4 + 6 * 2 * 4)) * 5
169 , 4 * (8 + 7 + 7 * 8 + (7 + 5)) + 6 + 8 + 7
170 , (5 + 4 + (7 * 7) * 2 * 4 + 3) + (8 * (6 + 6 * 9 + 7 * 7 * 3) * 2) * 3 + 5 + 9 + 7
171 , 8 + (8 * (5 + 3 * 7 * 6 * 7) * 9 * 9 + 7) * 8 * 4
172 , 7 * (6 * 8 * (6 * 3 + 9 + 8 + 8) + 7) + 7 * 7 * 3 + 4
173 , 2 + (9 * 4 * (9 + 7 + 6) + 3 * 8 + 7) + 7 * 2 + (4 + (7 + 2 + 9 + 9 + 7 + 2) + (9 * 3 + 4 + 4 + 3 + 8))
174 , (4 + 4 * (4 + 7 + 3 + 3 * 9 + 8) + 3) * 7 * (7 * 6 + 9) + 4 * 4 + 5
175 , 8 + 6 * 8 * 5 + (7 * (4 + 9 + 3 * 6 + 8) + (7 * 9 * 2 + 3 * 2 + 8) * 6 + (4 + 7 + 4))
176 , (3 * (4 * 7 * 3 * 8) * (6 + 7 + 6 * 7 + 7 * 2) * 8 + 5 * 7) + (9 + 8 + 7 + 5 + 6 * 7) * 5 * 4 * 5
177 , 3 + 3 * 2 + ((2 * 3 + 2 + 6 * 6) * 6) * 8 * (3 + 7 * 8 + 6 + 3 + 8)
178 , (5 * 4) * ((3 * 2 + 9 * 4 + 5 + 7) + (7 * 3 * 7 + 9 * 7 * 5) * 7 + 4 + 6)
179 , 3 + 2 + 5 * 7 * 9 + 2
180 , (4 + 6 * 3 + 3 * (6 * 3 + 5) * (6 * 3 + 5)) + 2
181 , 5 + 8 + 6 * 3 + 3 * 2
182 , (8 + 7 * 4) + 7 + 3 + 4
183 , (3 + 3 * 9 + 7 * 7 + 3) + 6 + 5 * (2 + (4 * 2 * 2 + 9 + 6) * 2) * 6 + (7 + 2 + 7)
184 , 9 * 2 * (3 + (8 + 7 * 5 + 3)) + ((9 + 3 + 6 + 7) * 9 * 8 + 5 * 6) + 5
185 , (6 * 4) * 7 + 4 + 3 + 5 * 4
186 , 8 * 2 + (6 * 4 + 3 + 6)
187 , (4 + 5 * 2 + 9 * 9 * 6) * 8 * 7 * ((4 * 3 * 3) + 5 * 6 * 2) + 9
188 , (8 * 5 * (5 * 7 * 5 + 4 + 5) * 2 + 9 * 6) + 4 + 6
189 , 2 * 5 + ((2 + 8) + 3) * 5 + 7
190 , 5 + ((8 + 2 * 6) + (2 * 5 + 6 + 4 * 8 * 7) + 3 + 7 + 8)
191 , 6 * 2 * (6 + 8 * (3 + 7 * 5) * 2 * 7) + 8
192 , 2 + 2 + ((8 + 2) * 8 * 8)
193 , 3 + 7 + ((8 * 2 + 3) * 9 + 2 * 4) + (9 * 9 * (3 + 7 + 3 + 5 + 4) + (8 * 5 + 4) + 9 + 7)
194 , 3 * 5 + ((4 * 8 + 8 + 7) + 8 * (3 * 3 * 7 + 9 * 6 + 3) + (9 + 2 + 3 * 9 * 8)) * ((7 * 8) + 9 + 2 + 9 * 2)
195 , (7 + 9 + (2 + 8 + 7 * 7 + 4) + 9 + 6 + 7) + 6
196 , 2 + ((2 * 9 * 7 + 4) + 3) + 3 * (8 * (9 * 4 + 7 * 3 + 3) + 8 + 5 + 7) * (9 + 9 * 5 + (8 + 9) + 2 + 5)
197 , 8 + (3 + 5 + 9 * 7) + (7 * (9 + 8) + 8 + (9 * 7 + 8 + 6 + 8)) * 2
198 , (3 * (6 + 6 * 6 + 2) * 9 + 5 + 6) + 8
199 , 6 * 5 + ((9 + 5 + 5) + (6 * 5 * 7 * 7) + 7 * (9 * 7 * 4 + 6)) + 7
200 , 2 + 7 * 7 + 2 * ((5 * 8 + 9 + 9 + 8) * 9)
201 , ((2 * 8 * 4 + 2) + 3) * 4 + 9 + 3 + (7 * 7 * 4 + 2 * 2) * 3
202 , 6 * 8 + ((3 + 6 + 4 * 3) + 6) * 3 + 9
203 , (5 + 2 * 3 * 4) * 3 + 7 + 7
204 , ((7 + 4 * 7 + 7 * 9 * 8) * 3 + 9) * (7 * 2 + 9 * 9 * 8) + 5 + 8 + 6
205 , 6 + (2 + (9 * 6) * 4 + 5 + 5) + (5 * 2 + 6 * (2 + 2) + 6 + 9) + 5
206 , 6 * 3 * (6 + 5 + 4 * 8 + (9 + 2 * 4 * 5 + 4 + 7)) + 5
207 , 9 + (2 + 3) * (6 + 5 * 5 * 2 * (3 * 6)) + 6 + 8 + (4 + 8 * 9)
208 , ((7 * 5 * 5 + 9 + 3) * (7 + 7) + (2 + 6 + 6 * 3 + 7) + 5) + 6
209 , 8 + 2 * 9 + 3 + 4
210 , (7 * 8 * 4 * 9 + (9 * 9)) * 4 + (4 + (7 * 3 + 6) + 2 + 4 + 9 * 5) + 9
211 , (4 + 5) * 8 * (5 * 5) * 4 * 8
212 , (4 + (5 + 4)) * 7 * 4 + 9
213 , 3 + 8 * (3 * (5 * 2 + 6) * 9 + (4 * 2 + 6 + 7) + (9 + 9 * 8)) + 5 + ((2 + 7 + 8 + 8) * (7 + 8 + 3 * 9)) * 9
214 , 8 * 9 + ((8 * 7 + 4 * 5 + 8 + 4) + (3 + 8 * 4) + 8 * 3 + 3)
215 , 6 + (6 + (2 * 5 + 2 * 8)) * 6 + 8 + 4
216 , ((9 * 5 * 5 + 8) * 9 * 2 * 6 + 3) + 6 + 6 * 6 * ((5 + 3 * 2 + 4) + 8 + 8 + 6 * 4)
217 , ((5 * 3) + 6 + 5 * 5) * (6 * 8) + 3
218 , ((9 * 5 + 6 + 2 * 5 + 3) * 6 * 6 * 7 * 2 * 2) + 6 * 8
219 , 2 + 9 + 3 + 5
220 , 5 + 4 + 3 + 4
221 , 6 + (5 * 2 + 8 * 4 + 9)
222 , (7 * 5 * 3 * 9 * 9) + 6 + 5
223 , 8 * 8 + (8 + 9 + 5 * 4) + 3 + (5 + 2 + 6 + 6) + 9
224 , 9 + ((7 * 2 + 7 * 4 + 9) * 8 + 5 + 6 * 3 * (8 + 4)) * 2
225 , 5 * 8 * ((9 * 5) * 4 * 7 + 2 + (4 + 4 * 3 * 5) * 7) * 4 * 8
226 , 4 * 9 * (3 + 4 + 9 * 7) + 2 + (5 + 6) + ((6 * 2 * 8) + 9 + 5 + 2)
227 , 6 + 7 + (4 * (5 * 7 + 9) * 2 + (5 * 3 * 7))
228 , (9 * (9 * 3) + 9 + (3 + 2) * 6 + (4 + 4 + 9 + 4)) + 7 + 8 * (6 + 8 + (6 * 9 * 2 * 8)) * (8 + 6) + (8 * 6 + 2 * 7)
229 , 5 * ((4 + 2) * 2 * (2 + 9 + 2 * 4 * 3 * 4) * 4 + 8 + 3)
230 , 8 + 6 * (7 * 6 + 9 + 3 + 6)
231 , (5 * (8 * 7 + 4) + 3) + 2 * 5 * 4
232 , 9 + (2 * 3) + 3
233 , 4 + 5 + 6 + 8 + 4 * 9
234 , (3 * 3 + 4 * 4) * (4 + 7 + 6 * 6)
235 , 3 + 9 + (5 * 8 + 7 * (3 * 5 * 8 * 9 + 7 + 6) + 8)
236 , 7 + (8 + 5 * 9 + 6 * 3 + (9 + 3 * 7 * 5 + 3 * 2)) * 7 + 5
237 , 4 * 6 + 3 * (5 + (6 + 4 + 9) * 6) + 2
238 , 2 * 3 + 8 + 9 * 6 + (2 + 3 + 5)
239 , 8 + ((3 * 4 * 7 * 2) + 4 + 5 + 2) * 9
240 , 7 * 4 + 2 * 4 + 9 + (3 * 7 + 2 * 6 * (8 + 9 * 9) * 5)
241 , 4 * 3 * (7 * (8 * 5 * 8 + 3 + 9) * 3 * (4 * 8) + 4 + (9 * 3 + 9 + 6 * 4 + 9))
242 , 7 * 6 * 7 * (3 + 4 * 3) * (5 + 5 + 2) * 7
243 , 2 + 6 * ((4 * 3 + 6) * 5 * 8 + 4 * 2 + 9) + 6
244 , 6 + 4 + (5 * 5 + 7) * 8
245 , (5 * 3 * 8) * (6 * 6)
246 , 5 * (6 * 5) + 9 + 7 + (6 + 6)
247 , ((3 + 6 * 6 * 5 + 3) + (6 * 3 + 8 + 8 + 7) * 2 * (3 * 5 + 3)) + 3 * ((6 * 6) + 2 + 4) + 3 + 5 * 5
248 , 9 * (2 * 6 * 4 + 7 + 5 + (8 + 4 + 7 * 2)) + 5 + (3 * (4 * 5 * 6 + 6 + 4 * 4) * 5 + 8)
249 , 8 + 3
250 , 3 + (2 + 4 * (7 * 4 + 9 * 9) + 2 + 3) + 6
251 , ((5 + 9 * 6 + 3) + 2) + 5 * 2
252 , 3 + 8 * 2 * 4 + (2 + 3 + (3 + 9 * 6)) + 5
253 , 6 + 5 * ((9 * 9) * 9 + 4 + (8 + 3) * 8 * 5) + (8 * 8 + 2 + (5 * 6 * 5 * 3 + 9 + 7) + 5) * 5 * 5
254 , (6 * (5 * 3 + 9) * 3 * (7 + 4 + 8 + 3 + 8 + 6) * 5) + 3 + 7 * 2 * 9
255 , 6 + 3 + (2 * 2 + 9 + (4 * 4 * 2 + 3 * 4 * 9)) + 9 + 8 * (7 * 2)
256 , ((2 + 7 * 8) * 8 + 7 + 3 + 8) * 4 * 9
257 , 9 + 9 * 5 + 7 + ((9 * 9 * 4 + 4 + 3 * 7) * 5 * 5)
258 , (6 * 7 + 3 + 4 + (7 + 9 + 3 + 2)) + 3 + 6 * 9 + 8 * 7
259 , ((2 + 5) + (8 + 8 * 8 * 2 * 4 * 9) + 3 + 5) + 3 + 8
260 , 4 * 4
261 , 6 * 8 + (9 + 2 + 4 + 3 + 2 + (8 * 2 + 3 + 2 + 9)) + 8 + 3
262 , 7 + 2 + (2 * (7 + 2 + 9 * 3 * 5 * 8)) + 4 + 5 * 4
263 , 4 * 6 * 8
264 , 5 * 4 + 4 + 2
265 , 6 + 3 * (8 * 4 + (5 * 6 + 2))
266 , 2 * (2 + (2 * 9) + 7 + 9) + 6 * 7
267 , 6 * 3 * ((2 * 5) * 3 * 5 * 2) + ((2 * 8 * 7 + 9) * 3 + 5 + 2)
268 , (2 + 3 + 9 + 9 * 7) + (8 * 8 + 2 * 7 * 3) + 3 + ((5 * 5 + 4) * 2 * (3 + 8 * 6 + 2)) + 5
269 , 6 + ((3 + 8 * 3 * 9 * 7 + 3) + 2 * 3) * 4 * 9 + (3 + 2 * 7)
270 , ((2 * 4 * 4) * (2 + 5 * 4) * (9 * 7 + 3 + 9)) + 7 + 7 + 8 * 4 * (5 * (4 * 9) + 4 * (7 + 9 * 9 * 2 * 9) + 3)
271 , 2 + 2 + ((2 + 5 + 7) * 8 + 3) + 5
272 , 3 + ((6 + 4 + 9 + 9 + 5 + 6) + (6 + 7 + 3 * 2 * 8 + 3) + 9 + (3 * 2 * 9) + 9 * 3) + 9 * ((6 * 7 * 9 + 9) + 3 * 3 + 7)
273 , 4 * 9 * 4 * 7 * (4 + 4) + 3
274 , 2 * (7 * 5) * 2 + ((8 + 2 + 6 * 4 + 6 * 4) * 4)
275 , 6 * (2 * 8 * 4 + 6) * 7
276 , 2 * 3 + 7
277 , (7 + 8 * (8 * 6 * 4) * 5) + (9 + 9 * 3) * 2 * 9
278 , 4 + 3 * (5 + 5 * 9) * 9 * 2 + 8
279 , 8 * (2 + (5 * 8 * 3 * 8 + 7) + 3 + 7)
280 , (2 + 2 * 2) * 2
281 , (4 + 2 * (8 + 4)) + 2 * 8 * (6 + 7 * 9 * (3 * 2 + 3) + 7 * 9) * 3
282 , (9 + (5 + 2) + 7 + 6) * (9 * 4 * (4 + 7 * 7 + 6 + 5) * 7) + 7 * 7
283 , 2 * (3 * 7 * 7 + 7) * (6 + 2 * 6) + (9 * (4 + 2 + 9 * 8) * 9 + 7 + 7)
284 , (6 + 7 + 8 * (6 * 9 + 2) + 5 * 3) * 4 * (6 * 8 * 5 + 7 * 3) + (8 + 2 + 8 + 2 + 8) * 5 * (6 + 9 + 7 * 8)
285 , 2 * 8 * (6 * (4 + 5 * 2) + (3 * 4 * 2 * 3 + 7) * 7 * 5)
286 , 3 + (9 + 3 * 7 + (8 + 4 + 2) + 3) * 4
287 , 9 * (8 * (3 * 7 + 2) + (8 * 3 + 7 + 3 * 4 * 2) + 2 * 2 + 8) * 4 + 2
288 , 7 * 3 * 6 + (7 + 5)
289 , (8 * 7 * (3 * 2 * 9 * 8)) + ((4 * 3 + 7 + 8) + (6 * 8) + 3 + (5 * 9 + 8 + 7 + 5) * 8 + 5) * 9 + 5 + (4 + (9 * 9) + 5 * 3 * (4 * 2)) * 8
290 , ((3 + 8) + 6 * 5 * 6 * 5 * (4 + 8 * 9 * 5 * 9 + 9)) * 9 * 3 + (6 * 3)
291 , (6 + 5 * 2 + 5 + 9) + 4 * (9 * 6 * 5) + 6 * 9
292 , ((7 + 5) * 2) + 7 * (4 + 4) * 9
293 , (5 + (5 + 2 * 5 * 6)) * 2 + 4
294 , 8 + (3 * 4 * 9 + (6 + 3 * 5 * 2) * 9 * 9)
295 , 3 * 5 + 2 + 2 * 9 + (4 + 6 * 9 * 3)
296 , 4 * 6 * ((5 * 7 * 8) + 6) * 9
297 , 3 * 8 + (8 + 6 + (9 * 4 + 5 + 4)) * 9 + 9 * 7
298 , (6 * 2 + 3 * 8 * 4 * 2) * (3 * 2 + 8 + (8 * 9 + 9 * 2 * 2) * 8) * 2 * 3
299 , 8 * 4 + 4 + 2 + (4 * (6 + 2 + 8 + 6 * 6) * (5 + 6 + 9 + 2 * 2) * (3 + 7 + 8 + 6 * 8) * 5 * 7) + 3
300 , (2 * 5) + ((7 + 6) + 9 * 7 * (7 + 5 * 6 + 3 + 9)) * 4
301 , 2 * ((4 + 2 + 6 * 5 * 9) + 4)
302 , (5 * 9 * 2 + 5 + (4 + 9 * 4 + 8) + 2) + 8 * 3
303 , 4 * ((6 + 7 * 3 * 9 * 8) + 5 * 2) * 2 + (6 + (9 + 5 + 3 + 7 * 5) * 2 * 2 + (9 * 8 + 7 + 7 * 6)) * (4 * 7)
304 , 2 + 9 * 6 + 6 + (4 * 5 + 3 * (2 * 2 * 4 * 5 + 7 + 6) + 7 * 5)
305 , 7 + ((9 * 4 + 7 + 9) + (4 + 6 * 7 + 4)) * 5 + ((9 + 8 * 5 * 9 * 9) * 9 + (3 * 2 * 6) * 2 * 6 + (3 + 7))
306 , (9 * 5 * 9) + (3 * 9 + 2) * (2 * 6 * 7 * (6 + 3) * 6 + 4) + 3 + 8
307 , (8 * (8 * 3 * 2)) * (4 + 5) * 7 * 3
308 , 7 + 7 + ((2 * 2) * 7 + 4 + 7 * 9)
309 , (6 + 5 + 9) * 6 + 2 * 9 * 9 + 3
310 , 4 + 2 + (3 * (4 + 7 * 6 * 7 + 3 + 3) + 7) * (2 + 2 + 7 * (6 + 2 + 8 + 3 * 8 * 4) + (8 + 2)) + (7 * 8)
311 , (4 + 7 + (3 * 2 + 9 + 5)) + 9 + 6 * 7 * 2 + (5 + 5 * 3 + 7 + 9 + 9)
312 , 6 * 9 * 7 * (3 + 5 + 2 * 4 + 6 + 6)
313 , (5 * 3 * (6 + 8 + 9 * 6)) * 8
314 , (6 * 5) + (7 + 4) * (4 + 9 + 4 + (2 * 3) * 7)
315 , 4 + 6 * 5 * (2 * 2 * 2 + 3 + 6 * 4) + 7 * 9
316 , 9 * 5 * (8 * 9 * 6 + 5 * (3 * 5 + 9 + 9 + 6) + 5)
317 , 3 * (9 + 7 * 2) * 6
318 , 5 + 9 + 6
319 , 6 + (7 * 5 * 9 + 3 + (6 * 3 + 8 + 4 * 9)) + 3 * 5 + 3
320 , 7 + 5 * ((2 * 4 * 4) + 3 + 4)
321 , (7 * 8 + 2 + 8 * 4) + (7 + 3) + 7 + 7 * 6 + 3
322 , (8 + 6 + 5 + 5 * (5 + 3 * 3)) * (8 * (5 + 9) * 4) + 5 + 7 + ((8 + 8) * 3 * 9 * 9 * 6 + 2)
323 , (8 * 2 * 5 + (8 * 8 * 2)) * 4 * 2 + 3 * 2
324 , 5 + 4 * 2 * 9 + (6 * 3)
325 , 2 + 9 * ((5 + 3) * 3 * 9 + (6 + 4) * 6) + 9 * 7 * 4
326 , 6 + 5 + 6 * 9 + (2 + 3 + 9) + ((4 + 7) * 6 * (7 + 2 * 3) * 2 * (7 * 2 + 3 + 7 * 9))
327 , 2 + 7 * (6 * (9 * 6 + 2 * 3 * 7 + 5) + 9 * 2 * 5) * (4 * 5) * 5
328 , (8 + 7 * 3) + 6 + 7 * 6 + (5 + 2 * 5 * 2 * 6 + 7) * (7 * (4 + 8 + 7 + 6 + 2 * 2) * 8)
329 , (8 * 2) * 3 * 4
330 , 2 * 7 + (8 + 7 + 8)
331 , ((5 * 8) * 3 + 8 + 7) * 3 * 5
332 , ((3 * 4 * 6 * 8 + 6) * 6 + (4 * 9 * 9 * 7 * 6) * 6 + 8) * 7 + 9 * 2
333 , (3 * 9 * 2 + 6 * 7 * (3 + 7 + 9 + 4 * 3)) * 2 * 8 * 9 * (2 + 3 * 7 * 9)
334 , (6 * 8 + 6 + 2) * 7 + 8
335 , 7 * (9 * 2 + (2 + 6 * 2 * 5 * 8)) * 3 + 8
336 , 7 * 2 * 6 + 6 * 2 * 8
337 , 5 + 8 + (4 + 9 + 8 + (9 + 8 + 6 + 4) * 3 * 6)
338 , (3 + (7 + 9 + 4 + 5 * 6 * 7) + (6 + 4 + 3 * 7 * 2)) * 2 + 3
339 , 6 + 7 + (6 * 6 + (4 * 5 * 5 + 3 + 6 + 4) + 3 + 9)
340 , 5 * 2 + 6 * 6 * (2 * 8 * 8 * 2 * 2 + 2)
341 , 5 + 7 * 8 + (7 * 4) * 4
342 , 9 * 8 + 9 + (4 * 6 + (8 + 2 + 4 * 7 + 3) * 4 * (2 * 8 * 5 * 3))
343 , 5 * 6 + 6 * 7 + (5 * 8 * 2 * 2)
344 , 3 + 8 * 6 + 7 * 7 + ((6 * 5) + 6 + (7 * 9) + 3 + (3 * 2 + 5))
345 , 8 + (9 + (6 + 5 * 6))
346 , 3 + (9 * 7 + 6 * 6 * 9 * 2) + 7 * 7 + 8
347 , 6 + 3 + 4 * 2 + 9 * (9 * 6 * 6 + 7 + 7 + (4 + 7 + 8 * 4 + 6))
348 , 6 + (6 * 4 * 5 + 3 * 9 * (6 + 8 * 6 + 4 * 7 * 3))
349 , 9 * (3 + 9 * 7)
350 , 7 + 3 + 3 + 9
351 , 7 * 3 * ((6 + 8) + 5 * 4 + 8 * 9 * (9 * 3)) + 9
352 , 7 + 3 * (2 + 2 + (5 * 7 + 9 * 4 + 4) * 5) + 4 * 2 * 2
353 , (4 + 2 * (4 * 8)) + ((5 + 9 * 8 + 8 + 8 + 4) * 8 + 9) * 5
354 , 2 * (4 + 9 + 8) + 8 * 3 * 8
355 , ((5 + 5) * 5 * 7 + 9 * 3 * 9) + 9 * 6 + 9
356 , (7 * 4 * 6 * 9 + 4) * (9 * 2 * (7 * 4 * 7) * (7 + 8 * 6 * 8 * 3 * 7)) + 3 + 3 + 2
357 , (5 * 7 + 6 * 4 * 7 + (9 + 2 * 2)) * 7 * 3
358 , 3 * 3 + ((2 * 9 + 5 * 3) + 8 + 5 + 9) + 2 + 8 + (9 + 9 * 4)
359 , ((7 + 3) * 9 * 3 + 9 + 4 + 9) * ((5 + 4 + 2 + 2 + 2) + 6 * 3 * 8)
360 , 8 + 9 * 5 + (9 + 2 + (3 * 6) * 2 * 4 + 3) * 5 + 8
361 , (9 * (5 * 3) + 8) + (2 + (9 * 6 + 8 * 6 + 8) * 5 + 6 + 5 * 7) + 7 + 2 + 8
362 , 8 * 8 + 6 + (4 + (7 + 6 * 8 + 7 + 8 * 7) + (9 * 3 * 5 * 4 + 3) * 7 * 9 + 8) + 7
363 , 2 * 8 * 4 * 5 + (8 * 4 * 6)
364 , 5 * (3 * 4) + 8 * 5
365 , 9 * (6 + 4 + 9 + (6 * 3 + 4 * 4 * 9 + 9)) * 9
366 , 4 + 3 + (3 + 6) + ((5 * 6 * 6 * 9) * (6 + 2) + 6)
367 , 5 + 3 + 3 + (7 * 3 * 5 + 5 * 3) + 9
368 , (2 + 6 + 8 + 3) * (9 + 7) * 6
369 , (6 + 7) * 9 * 8 + 3 + (3 * 7) * (3 * 4 * 6 + (6 * 6) * (8 * 6 + 7 * 8))
370 , 9 + (7 + 5 + 3 * 5) + 7 + 6
371 , (7 * 3 + 9 * 2 + 5 * 8) * 9 + 3 * 9 * 9
372 , 5 * 6 * 2
373 , 5 * 2 + 7 * (8 * 3 + 4 * (7 * 9 + 2)) * (4 + 2 * (8 * 5 * 5 * 9 * 3) * 5 * 4 + 6)
374 , 4 * ((3 + 3) * (5 * 7 * 2 * 4) + (9 * 5 + 9 + 3 + 5 * 6) * 6 + 7) + 3
375 , 6 + 7
376 , 3 + 4 * ((5 + 7 + 4 + 2 * 6 + 2) + 6 * 7)
377 , (4 + 6 * 2 + 8 + 5 * 5) + 9 * 5 + 2
378 , 2 * 8 * (7 + 6 + (9 + 2 * 8 + 7)) * ((3 * 5 + 6 + 4 + 5 * 3) + 6 * 8 + 9 + (8 + 9 * 6 * 4) + (5 + 4 + 3 * 2 + 9)) + 6
379 , 3 + 7 + 3 + ((7 * 9) * 9) * 3
380 , 6 * 4 * 3 * 7 + (4 * 2 * 2 + (6 + 9 * 6))
381 , ((8 + 6 + 2 + 3 + 7 + 2) * (7 * 2) + 6) * 8 * 4
382 , 6 + 7 * 4 * 4 * (8 + 5 + 8 + 9 * 9) * 7
383 , (5 + 9) * (4 * 8 * (4 + 9 * 4) * 4 + 3) + 6 * 5 + 9 * 3
384 , 3 * 4
385 , (3 * 2 * (6 * 5 * 5) * 3) + 6 * 4 + (8 + 9 + (6 * 4)) + (3 * 9 * 5 * (6 * 3 + 2) * (3 * 2)) * 7
386 , 5 + ((2 + 2 * 9 * 9 * 5 * 8) + 7 + 9) * 4
387 , (7 + 2) + 4 * 4 + (7 * 4) * (5 + 9 * 2)
388 , (4 + (2 * 8 + 2 * 6) * 3 + 2) * 9 * 3 * ((2 * 6) + 6 * 3 + 7 * (9 * 8 + 7 + 4)) + 2
389 , 9 + (4 + 8) * (7 * 3 + 4) + 7
390 , 9 + 5 * 9 * ((2 + 3 + 3 + 6 + 5) + 8) + 2 + (3 + (9 * 9) + 2 * (5 + 8 + 8 + 7) * (8 + 7 + 5 + 5 * 7 * 7) * (9 + 5 * 8 * 5 * 8 + 2))
391 , ((6 * 9 * 5 * 3) + 5 + 3) * 9
392 , (8 * 6 + 7 + 2 + (4 * 7 + 7 + 8 + 8) + 8) + 4 + 3
393 , 4 + (9 * 4 + (2 + 4 * 3) + 9 * 9 + 5) + 5 * 2 * 4
394 , 6 + 2 + 4 + (8 * 8 * (7 * 2 + 7 * 2 * 9 + 6) + 9)
395 , 8 * 8 * 6 * 5 * 5
396 , 4 * 3 + (5 + 2 + 6 * (7 * 8 * 7 + 5) * 5 * 8) * (9 * (6 * 6 + 3 * 5) + 9 + 6) + 6 + (2 + (2 + 5) + 3)
397 , 3 + (6 * 9 * (4 * 4) * (7 + 2 + 9 * 3 + 5 + 8)) + (3 * (6 + 7 * 4 + 9 * 8) + 3 * 5 + 9 * (5 + 9))
398 , (3 + (3 + 3 * 6) * 4) * 5
399 ]