aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <Mohammad.Anwar@yahoo.com>2025-11-04 09:21:56 +0000
committerGitHub <noreply@github.com>2025-11-04 09:21:56 +0000
commit415131ca0d6fda56279714bb711d20541b5c1367 (patch)
tree52970fa105b5729c3fecfd0f18406f964594b72f
parente437e6682ac3226144fe4e4f7596b4348e7fa30c (diff)
parent4716d04ed594c52ce8b88af7ee659c1b1c5494e5 (diff)
downloadperlweeklychallenge-club-415131ca0d6fda56279714bb711d20541b5c1367.tar.gz
perlweeklychallenge-club-415131ca0d6fda56279714bb711d20541b5c1367.tar.bz2
perlweeklychallenge-club-415131ca0d6fda56279714bb711d20541b5c1367.zip
Merge pull request #12970 from andemark/challenge-346
ch-2.raku grammar improved
-rw-r--r--challenge-346/mark-anderson/raku/ch-2.raku1301
1 files changed, 1265 insertions, 36 deletions
diff --git a/challenge-346/mark-anderson/raku/ch-2.raku b/challenge-346/mark-anderson/raku/ch-2.raku
index 60238a8f9d..56d4f67876 100644
--- a/challenge-346/mark-anderson/raku/ch-2.raku
+++ b/challenge-346/mark-anderson/raku/ch-2.raku
@@ -14,31 +14,20 @@ is-deeply magic-expression("1001", 2), ("1+0*0+1", "1+0+0+1", "1+0-0+1", "1-0*0
grammar Calculate
{
- rule TOP { <add-sub> }
- rule add-sub { <mult>+ % $<op>=<[+-]> }
- rule mult { <digits>+ % '*' }
- rule digits { <digit>+ }
+ rule TOP { <add> }
+ rule add { <subt>+ % '+' }
+ rule subt { <mult>+ % '-' }
+ rule mult { <digits>+ % '*' }
+ rule digits { <digit>+ }
}
class Actions
{
- method TOP($/) { make $<add-sub>.made }
- method digits($/) { make $/ }
- method mult($/) { make [*] $<digits>>>.made }
- method add-sub($/)
- {
- my @ops = $<op>>>.Str;
- my @vals = $<mult>>>.made;
- my $result;
-
- for @vals Z @ops.unshift('+')
- {
- if .tail eq '+' { $result += .head }
- else { $result -= .head }
- }
-
- make $result
- }
+ method TOP ($/) { make $<add>.made }
+ method add ($/) { make [+] $<subt>>>.made }
+ method subt ($/) { make [-] $<mult>>>.made }
+ method mult ($/) { make [*] $<digits>>>.made }
+ method digits($/) { make $/.UInt }
}
multi magic-expression($str where *.chars > 7, $target)
@@ -54,28 +43,1268 @@ multi magic-expression($str, $target)
gather for @partitions[@nums-2]<> -> @p
{
my @r = @nums.rotor(@p)>>.join;
- next if any @r ~~ /^0\d/;
+ next if any @r ~~ /^0<digit>/;
for @operators[@p-2]<> -> @o
{
my $exp = flat roundrobin @r, @o;
- take [~] $exp if Calculate.parse($exp, actions => Actions).made == $target
+ take [~] $exp if Calculate.parse($exp, :actions(Actions)).made == $target
}
}
}
=finish
+
[
-[[[1,1]],
-[[1,1,1],[1,2],[2,1]],
-[[1,1,1,1],[1,1,2],[1,2,1],[2,1,1],[1,3],[3,1],[2,2]],
-[[1,1,1,1,1],[1,1,1,2],[1,1,2,1],[1,2,1,1],[2,1,1,1],[1,1,3],[1,3,1],[3,1,1],[1,2,2],[2,1,2],[2,2,1],[1,4],[4,1],[2,3],[3,2]],
-[[1,1,1,1,1,1],[1,1,1,1,2],[1,1,1,2,1],[1,1,2,1,1],[1,2,1,1,1],[2,1,1,1,1],[1,1,1,3],[1,1,3,1],[1,3,1,1],[3,1,1,1],[1,1,2,2],[1,2,1,2],[1,2,2,1],[2,1,1,2],[2,1,2,1],[2,2,1,1],[1,1,4],[1,4,1],[4,1,1],[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1],[1,5],[5,1],[2,2,2],[2,4],[4,2],[3,3]],
-[[1,1,1,1,1,1,1],[1,1,1,1,1,2],[1,1,1,1,2,1],[1,1,1,2,1,1],[1,1,2,1,1,1],[1,2,1,1,1,1],[2,1,1,1,1,1],[1,1,1,1,3],[1,1,1,3,1],[1,1,3,1,1],[1,3,1,1,1],[3,1,1,1,1],[1,1,1,2,2],[1,1,2,1,2],[1,1,2,2,1],[1,2,1,1,2],[1,2,1,2,1],[1,2,2,1,1],[2,1,1,1,2],[2,1,1,2,1],[2,1,2,1,1],[2,2,1,1,1],[1,1,1,4],[1,1,4,1],[1,4,1,1],[4,1,1,1],[1,1,2,3],[1,1,3,2],[1,2,1,3],[1,2,3,1],[1,3,1,2],[1,3,2,1],[2,1,1,3],[2,1,3,1],[2,3,1,1],[3,1,1,2],[3,1,2,1],[3,2,1,1],[1,1,5],[1,5,1],[5,1,1],[1,2,2,2],[2,1,2,2],[2,2,1,2],[2,2,2,1],[1,2,4],[1,4,2],[2,1,4],[2,4,1],[4,1,2],[4,2,1],[1,3,3],[3,1,3],[3,3,1],[1,6],[6,1],[2,2,3],[2,3,2],[3,2,2],[2,5],[5,2],[3,4],[4,3]]],
-
-[[["*"],["+"],["-"]],
-[["*","*"],["*","+"],["*","-"],["+","*"],["+","+"],["+","-"],["-","*"],["-","+"],["-","-"]],
-[["*","*","*"],["*","*","+"],["*","*","-"],["*","+","*"],["*","+","+"],["*","+","-"],["*","-","*"],["*","-","+"],["*","-","-"],["+","*","*"],["+","*","+"],["+","*","-"],["+","+","*"],["+","+","+"],["+","+","-"],["+","-","*"],["+","-","+"],["+","-","-"],["-","*","*"],["-","*","+"],["-","*","-"],["-","+","*"],["-","+","+"],["-","+","-"],["-","-","*"],["-","-","+"],["-","-","-"]],
-[["*","*","*","*"],["*","*","*","+"],["*","*","*","-"],["*","*","+","*"],["*","*","+","+"],["*","*","+","-"],["*","*","-","*"],["*","*","-","+"],["*","*","-","-"],["*","+","*","*"],["*","+","*","+"],["*","+","*","-"],["*","+","+","*"],["*","+","+","+"],["*","+","+","-"],["*","+","-","*"],["*","+","-","+"],["*","+","-","-"],["*","-","*","*"],["*","-","*","+"],["*","-","*","-"],["*","-","+","*"],["*","-","+","+"],["*","-","+","-"],["*","-","-","*"],["*","-","-","+"],["*","-","-","-"],["+","*","*","*"],["+","*","*","+"],["+","*","*","-"],["+","*","+","*"],["+","*","+","+"],["+","*","+","-"],["+","*","-","*"],["+","*","-","+"],["+","*","-","-"],["+","+","*","*"],["+","+","*","+"],["+","+","*","-"],["+","+","+","*"],["+","+","+","+"],["+","+","+","-"],["+","+","-","*"],["+","+","-","+"],["+","+","-","-"],["+","-","*","*"],["+","-","*","+"],["+","-","*","-"],["+","-","+","*"],["+","-","+","+"],["+","-","+","-"],["+","-","-","*"],["+","-","-","+"],["+","-","-","-"],["-","*","*","*"],["-","*","*","+"],["-","*","*","-"],["-","*","+","*"],["-","*","+","+"],["-","*","+","-"],["-","*","-","*"],["-","*","-","+"],["-","*","-","-"],["-","+","*","*"],["-","+","*","+"],["-","+","*","-"],["-","+","+","*"],["-","+","+","+"],["-","+","+","-"],["-","+","-","*"],["-","+","-","+"],["-","+","-","-"],["-","-","*","*"],["-","-","*","+"],["-","-","*","-"],["-","-","+","*"],["-","-","+","+"],["-","-","+","-"],["-","-","-","*"],["-","-","-","+"],["-","-","-","-"]],
-[["*","*","*","*","*"],["*","*","*","*","+"],["*","*","*","*","-"],["*","*","*","+","*"],["*","*","*","+","+"],["*","*","*","+","-"],["*","*","*","-","*"],["*","*","*","-","+"],["*","*","*","-","-"],["*","*","+","*","*"],["*","*","+","*","+"],["*","*","+","*","-"],["*","*","+","+","*"],["*","*","+","+","+"],["*","*","+","+","-"],["*","*","+","-","*"],["*","*","+","-","+"],["*","*","+","-","-"],["*","*","-","*","*"],["*","*","-","*","+"],["*","*","-","*","-"],["*","*","-","+","*"],["*","*","-","+","+"],["*","*","-","+","-"],["*","*","-","-","*"],["*","*","-","-","+"],["*","*","-","-","-"],["*","+","*","*","*"],["*","+","*","*","+"],["*","+","*","*","-"],["*","+","*","+","*"],["*","+","*","+","+"],["*","+","*","+","-"],["*","+","*","-","*"],["*","+","*","-","+"],["*","+","*","-","-"],["*","+","+","*","*"],["*","+","+","*","+"],["*","+","+","*","-"],["*","+","+","+","*"],["*","+","+","+","+"],["*","+","+","+","-"],["*","+","+","-","*"],["*","+","+","-","+"],["*","+","+","-","-"],["*","+","-","*","*"],["*","+","-","*","+"],["*","+","-","*","-"],["*","+","-","+","*"],["*","+","-","+","+"],["*","+","-","+","-"],["*","+","-","-","*"],["*","+","-","-","+"],["*","+","-","-","-"],["*","-","*","*","*"],["*","-","*","*","+"],["*","-","*","*","-"],["*","-","*","+","*"],["*","-","*","+","+"],["*","-","*","+","-"],["*","-","*","-","*"],["*","-","*","-","+"],["*","-","*","-","-"],["*","-","+","*","*"],["*","-","+","*","+"],["*","-","+","*","-"],["*","-","+","+","*"],["*","-","+","+","+"],["*","-","+","+","-"],["*","-","+","-","*"],["*","-","+","-","+"],["*","-","+","-","-"],["*","-","-","*","*"],["*","-","-","*","+"],["*","-","-","*","-"],["*","-","-","+","*"],["*","-","-","+","+"],["*","-","-","+","-"],["*","-","-","-","*"],["*","-","-","-","+"],["*","-","-","-","-"],["+","*","*","*","*"],["+","*","*","*","+"],["+","*","*","*","-"],["+","*","*","+","*"],["+","*","*","+","+"],["+","*","*","+","-"],["+","*","*","-","*"],["+","*","*","-","+"],["+","*","*","-","-"],["+","*","+","*","*"],["+","*","+","*","+"],["+","*","+","*","-"],["+","*","+","+","*"],["+","*","+","+","+"],["+","*","+","+","-"],["+","*","+","-","*"],["+","*","+","-","+"],["+","*","+","-","-"],["+","*","-","*","*"],["+","*","-","*","+"],["+","*","-","*","-"],["+","*","-","+","*"],["+","*","-","+","+"],["+","*","-","+","-"],["+","*","-","-","*"],["+","*","-","-","+"],["+","*","-","-","-"],["+","+","*","*","*"],["+","+","*","*","+"],["+","+","*","*","-"],["+","+","*","+","*"],["+","+","*","+","+"],["+","+","*","+","-"],["+","+","*","-","*"],["+","+","*","-","+"],["+","+","*","-","-"],["+","+","+","*","*"],["+","+","+","*","+"],["+","+","+","*","-"],["+","+","+","+","*"],["+","+","+","+","+"],["+","+","+","+","-"],["+","+","+","-","*"],["+","+","+","-","+"],["+","+","+","-","-"],["+","+","-","*","*"],["+","+","-","*","+"],["+","+","-","*","-"],["+","+","-","+","*"],["+","+","-","+","+"],["+","+","-","+","-"],["+","+","-","-","*"],["+","+","-","-","+"],["+","+","-","-","-"],["+","-","*","*","*"],["+","-","*","*","+"],["+","-","*","*","-"],["+","-","*","+","*"],["+","-","*","+","+"],["+","-","*","+","-"],["+","-","*","-","*"],["+","-","*","-","+"],["+","-","*","-","-"],["+","-","+","*","*"],["+","-","+","*","+"],["+","-","+","*","-"],["+","-","+","+","*"],["+","-","+","+","+"],["+","-","+","+","-"],["+","-","+","-","*"],["+","-","+","-","+"],["+","-","+","-","-"],["+","-","-","*","*"],["+","-","-","*","+"],["+","-","-","*","-"],["+","-","-","+","*"],["+","-","-","+","+"],["+","-","-","+","-"],["+","-","-","-","*"],["+","-","-","-","+"],["+","-","-","-","-"],["-","*","*","*","*"],["-","*","*","*","+"],["-","*","*","*","-"],["-","*","*","+","*"],["-","*","*","+","+"],["-","*","*","+","-"],["-","*","*","-","*"],["-","*","*","-","+"],["-","*","*","-","-"],["-","*","+","*","*"],["-","*","+","*","+"],["-","*","+","*","-"],["-","*","+","+","*"],["-","*","+","+","+"],["-","*","+","+","-"],["-","*","+","-","*"],["-","*","+","-","+"],["-","*","+","-","-"],["-","*","-","*","*"],["-","*","-","*","+"],["-","*","-","*","-"],["-","*","-","+","*"],["-","*","-","+","+"],["-","*","-","+","-"],["-","*","-","-","*"],["-","*","-","-","+"],["-","*","-","-","-"],["-","+","*","*","*"],["-","+","*","*","+"],["-","+","*","*","-"],["-","+","*","+","*"],["-","+","*","+","+"],["-","+","*","+","-"],["-","+","*","-","*"],["-","+","*","-","+"],["-","+","*","-","-"],["-","+","+","*","*"],["-","+","+","*","+"],["-","+","+","*","-"],["-","+","+","+","*"],["-","+","+","+","+"],["-","+","+","+","-"],["-","+","+","-","*"],["-","+","+","-","+"],["-","+","+","-","-"],["-","+","-","*","*"],["-","+","-","*","+"],["-","+","-","*","-"],["-","+","-","+","*"],["-","+","-","+","+"],["-","+","-","+","-"],["-","+","-","-","*"],["-","+","-","-","+"],["-","+","-","-","-"],["-","-","*","*","*"],["-","-","*","*","+"],["-","-","*","*","-"],["-","-","*","+","*"],["-","-","*","+","+"],["-","-","*","+","-"],["-","-","*","-","*"],["-","-","*","-","+"],["-","-","*","-","-"],["-","-","+","*","*"],["-","-","+","*","+"],["-","-","+","*","-"],["-","-","+","+","*"],["-","-","+","+","+"],["-","-","+","+","-"],["-","-","+","-","*"],["-","-","+","-","+"],["-","-","+","-","-"],["-","-","-","*","*"],["-","-","-","*","+"],["-","-","-","*","-"],["-","-","-","+","*"],["-","-","-","+","+"],["-","-","-","+","-"],["-","-","-","-","*"],["-","-","-","-","+"],["-","-","-","-","-"]],
-[["*","*","*","*","*","*"],["*","*","*","*","*","+"],["*","*","*","*","*","-"],["*","*","*","*","+","*"],["*","*","*","*","+","+"],["*","*","*","*","+","-"],["*","*","*","*","-","*"],["*","*","*","*","-","+"],["*","*","*","*","-","-"],["*","*","*","+","*","*"],["*","*","*","+","*","+"],["*","*","*","+","*","-"],["*","*","*","+","+","*"],["*","*","*","+","+","+"],["*","*","*","+","+","-"],["*","*","*","+","-","*"],["*","*","*","+","-","+"],["*","*","*","+","-","-"],["*","*","*","-","*","*"],["*","*","*","-","*","+"],["*","*","*","-","*","-"],["*","*","*","-","+","*"],["*","*","*","-","+","+"],["*","*","*","-","+","-"],["*","*","*","-","-","*"],["*","*","*","-","-","+"],["*","*","*","-","-","-"],["*","*","+","*","*","*"],["*","*","+","*","*","+"],["*","*","+","*","*","-"],["*","*","+","*","+","*"],["*","*","+","*","+","+"],["*","*","+","*","+","-"],["*","*","+","*","-","*"],["*","*","+","*","-","+"],["*","*","+","*","-","-"],["*","*","+","+","*","*"],["*","*","+","+","*","+"],["*","*","+","+","*","-"],["*","*","+","+","+","*"],["*","*","+","+","+","+"],["*","*","+","+","+","-"],["*","*","+","+","-","*"],["*","*","+","+","-","+"],["*","*","+","+","-","-"],["*","*","+","-","*","*"],["*","*","+","-","*","+"],["*","*","+","-","*","-"],["*","*","+","-","+","*"],["*","*","+","-","+","+"],["*","*","+","-","+","-"],["*","*","+","-","-","*"],["*","*","+","-","-","+"],["*","*","+","-","-","-"],["*","*","-","*","*","*"],["*","*","-","*","*","+"],["*","*","-","*","*","-"],["*","*","-","*","+","*"],["*","*","-","*","+","+"],["*","*","-","*","+","-"],["*","*","-","*","-","*"],["*","*","-","*","-","+"],["*","*","-","*","-","-"],["*","*","-","+","*","*"],["*","*","-","+","*","+"],["*","*","-","+","*","-"],["*","*","-","+","+","*"],["*","*","-","+","+","+"],["*","*","-","+","+","-"],["*","*","-","+","-","*"],["*","*","-","+","-","+"],["*","*","-","+","-","-"],["*","*","-","-","*","*"],["*","*","-","-","*","+"],["*","*","-","-","*","-"],["*","*","-","-","+","*"],["*","*","-","-","+","+"],["*","*","-","-","+","-"],["*","*","-","-","-","*"],["*","*","-","-","-","+"],["*","*","-","-","-","-"],["*","+","*","*","*","*"],["*","+","*","*","*","+"],["*","+","*","*","*","-"],["*","+","*","*","+","*"],["*","+","*","*","+","+"],["*","+","*","*","+","-"],["*","+","*","*","-","*"],["*","+","*","*","-","+"],["*","+","*","*","-","-"],["*","+","*","+","*","*"],["*","+","*","+","*","+"],["*","+","*","+","*","-"],["*","+","*","+","+","*"],["*","+","*","+","+","+"],["*","+","*","+","+","-"],["*","+","*","+","-","*"],["*","+","*","+","-","+"],["*","+","*","+","-","-"],["*","+","*","-","*","*"],["*","+","*","-","*","+"],["*","+","*","-","*","-"],["*","+","*","-","+","*"],["*","+","*","-","+","+"],["*","+","*","-","+","-"],["*","+","*","-","-","*"],["*","+","*","-","-","+"],["*","+","*","-","-","-"],["*","+","+","*","*","*"],["*","+","+","*","*","+"],["*","+","+","*","*","-"],["*","+","+","*","+","*"],["*","+","+","*","+","+"],["*","+","+","*","+","-"],["*","+","+","*","-","*"],["*","+","+","*","-","+"],["*","+","+","*","-","-"],["*","+","+","+","*","*"],["*","+","+","+","*","+"],["*","+","+","+","*","-"],["*","+","+","+","+","*"],["*","+","+","+","+","+"],["*","+","+","+","+","-"],["*","+","+","+","-","*"],["*","+","+","+","-","+"],["*","+","+","+","-","-"],["*","+","+","-","*","*"],["*","+","+","-","*","+"],["*","+","+","-","*","-"],["*","+","+","-","+","*"],["*","+","+","-","+","+"],["*","+","+","-","+","-"],["*","+","+","-","-","*"],["*","+","+","-","-","+"],["*","+","+","-","-","-"],["*","+","-","*","*","*"],["*","+","-","*","*","+"],["*","+","-","*","*","-"],["*","+","-","*","+","*"],["*","+","-","*","+","+"],["*","+","-","*","+","-"],["*","+","-","*","-","*"],["*","+","-","*","-","+"],["*","+","-","*","-","-"],["*","+","-","+","*","*"],["*","+","-","+","*","+"],["*","+","-","+","*","-"],["*","+","-","+","+","*"],["*","+","-","+","+","+"],["*","+","-","+","+","-"],["*","+","-","+","-","*"],["*","+","-","+","-","+"],["*","+","-","+","-","-"],["*","+","-","-","*","*"],["*","+","-","-","*","+"],["*","+","-","-","*","-"],["*","+","-","-","+","*"],["*","+","-","-","+","+"],["*","+","-","-","+","-"],["*","+","-","-","-","*"],["*","+","-","-","-","+"],["*","+","-","-","-","-"],["*","-","*","*","*","*"],["*","-","*","*","*","+"],["*","-","*","*","*","-"],["*","-","*","*","+","*"],["*","-","*","*","+","+"],["*","-","*","*","+","-"],["*","-","*","*","-","*"],["*","-","*","*","-","+"],["*","-","*","*","-","-"],["*","-","*","+","*","*"],["*","-","*","+","*","+"],["*","-","*","+","*","-"],["*","-","*","+","+","*"],["*","-","*","+","+","+"],["*","-","*","+","+","-"],["*","-","*","+","-","*"],["*","-","*","+","-","+"],["*","-","*","+","-","-"],["*","-","*","-","*","*"],["*","-","*","-","*","+"],["*","-","*","-","*","-"],["*","-","*","-","+","*"],["*","-","*","-","+","+"],["*","-","*","-","+","-"],["*","-","*","-","-","*"],["*","-","*","-","-","+"],["*","-","*","-","-","-"],["*","-","+","*","*","*"],["*","-","+","*","*","+"],["*","-","+","*","*","-"],["*","-","+","*","+","*"],["*","-","+","*","+","+"],["*","-","+","*","+","-"],["*","-","+","*","-","*"],["*","-","+","*","-","+"],["*","-","+","*","-","-"],["*","-","+","+","*","*"],["*","-","+","+","*","+"],["*","-","+","+","*","-"],["*","-","+","+","+","*"],["*","-","+","+","+","+"],["*","-","+","+","+","-"],["*","-","+","+","-","*"],["*","-","+","+","-","+"],["*","-","+","+","-","-"],["*","-","+","-","*","*"],["*","-","+","-","*","+"],["*","-","+","-","*","-"],["*","-","+","-","+","*"],["*","-","+","-","+","+"],["*","-","+","-","+","-"],["*","-","+","-","-","*"],["*","-","+","-","-","+"],["*","-","+","-","-","-"],["*","-","-","*","*","*"],["*","-","-","*","*","+"],["*","-","-","*","*","-"],["*","-","-","*","+","*"],["*","-","-","*","+","+"],["*","-","-","*","+","-"],["*","-","-","*","-","*"],["*","-","-","*","-","+"],["*","-","-","*","-","-"],["*","-","-","+","*","*"],["*","-","-","+","*","+"],["*","-","-","+","*","-"],["*","-","-","+","+","*"],["*","-","-","+","+","+"],["*","-","-","+","+","-"],["*","-","-","+","-","*"],["*","-","-","+","-","+"],["*","-","-","+","-","-"],["*","-","-","-","*","*"],["*","-","-","-","*","+"],["*","-","-","-","*","-"],["*","-","-","-","+","*"],["*","-","-","-","+","+"],["*","-","-","-","+","-"],["*","-","-","-","-","*"],["*","-","-","-","-","+"],["*","-","-","-","-","-"],["+","*","*","*","*","*"],["+","*","*","*","*","+"],["+","*","*","*","*","-"],["+","*","*","*","+","*"],["+","*","*","*","+","+"],["+","*","*","*","+","-"],["+","*","*","*","-","*"],["+","*","*","*","-","+"],["+","*","*","*","-","-"],["+","*","*","+","*","*"],["+","*","*","+","*","+"],["+","*","*","+","*","-"],["+","*","*","+","+","*"],["+","*","*","+","+","+"],["+","*","*","+","+","-"],["+","*","*","+","-","*"],["+","*","*","+","-","+"],["+","*","*","+","-","-"],["+","*","*","-","*","*"],["+","*","*","-","*","+"],["+","*","*","-","*","-"],["+","*","*","-","+","*"],["+","*","*","-","+","+"],["+","*","*","-","+","-"],["+","*","*","-","-","*"],["+","*","*","-","-","+"],["+","*","*","-","-","-"],["+","*","+","*","*","*"],["+","*","+","*","*","+"],["+","*","+","*","*","-"],["+","*","+","*","+","*"],["+","*","+","*","+","+"],["+","*","+","*","+","-"],["+","*","+","*","-","*"],["+","*","+","*","-","+"],["+","*","+","*","-","-"],["+","*","+","+","*","*"],["+","*","+","+","*","+"],["+","*","+","+","*","-"],["+","*","+","+","+","*"],["+","*","+","+","+","+"],["+","*","+","+","+","-"],["+","*","+","+","-","*"],["+","*","+","+","-","+"],["+","*","+","+","-","-"],["+","*","+","-","*","*"],["+","*","+","-","*","+"],["+","*","+","-","*","-"],["+","*","+","-","+","*"],["+","*","+","-","+","+"],["+","*","+","-","+","-"],["+","*","+","-","-","*"],["+","*","+","-","-","+"],["+","*","+","-","-","-"],["+","*","-","*","*","*"],["+","*","-","*","*","+"],["+","*","-","*","*","-"],["+","*","-","*","+","*"],["+","*","-","*","+","+"],["+","*","-","*","+","-"],["+","*","-","*","-","*"],["+","*","-","*","-","+"],["+","*","-","*","-","-"],["+","*","-","+","*","*"],["+","*","-","+","*","+"],["+","*","-","+","*","-"],["+","*","-","+","+","*"],["+","*","-","+","+","+"],["+","*","-","+","+","-"],["+","*","-","+","-","*"],["+","*","-","+","-","+"],["+","*","-","+","-","-"],["+","*","-","-","*","*"],["+","*","-","-","*","+"],["+","*","-","-","*","-"],["+","*","-","-","+","*"],["+","*","-","-","+","+"],["+","*","-","-","+","-"],["+","*","-","-","-","*"],["+","*","-","-","-","+"],["+","*","-","-","-","-"],["+","+","*","*","*","*"],["+","+","*","*","*","+"],["+","+","*","*","*","-"],["+","+","*","*","+","*"],["+","+","*","*","+","+"],["+","+","*","*","+","-"],["+","+","*","*","-","*"],["+","+","*","*","-","+"],["+","+","*","*","-","-"],["+","+","*","+","*","*"],["+","+","*","+","*","+"],["+","+","*","+","*","-"],["+","+","*","+","+","*"],["+","+","*","+","+","+"],["+","+","*","+","+","-"],["+","+","*","+","-","*"],["+","+","*","+","-","+"],["+","+","*","+","-","-"],["+","+","*","-","*","*"],["+","+","*","-","*","+"],["+","+","*","-","*","-"],["+","+","*","-","+","*"],["+","+","*","-","+","+"],["+","+","*","-","+","-"],["+","+","*","-","-","*"],["+","+","*","-","-","+"],["+","+","*","-","-","-"],["+","+","+","*","*","*"],["+","+","+","*","*","+"],["+","+","+","*","*","-"],["+","+","+","*","+","*"],["+","+","+","*","+","+"],["+","+","+","*","+","-"],["+","+","+","*","-","*"],["+","+","+","*","-","+"],["+","+","+","*","-","-"],["+","+","+","+","*","*"],["+","+","+","+","*","+"],["+","+","+","+","*","-"],["+","+","+","+","+","*"],["+","+","+","+","+","+"],["+","+","+","+","+","-"],["+","+","+","+","-","*"],["+","+","+","+","-","+"],["+","+","+","+","-","-"],["+","+","+","-","*","*"],["+","+","+","-","*","+"],["+","+","+","-","*","-"],["+","+","+","-","+","*"],["+","+","+","-","+","+"],["+","+","+","-","+","-"],["+","+","+","-","-","*"],["+","+","+","-","-","+"],["+","+","+","-","-","-"],["+","+","-","*","*","*"],["+","+","-","*","*","+"],["+","+","-","*","*","-"],["+","+","-","*","+","*"],["+","+","-","*","+","+"],["+","+","-","*","+","-"],["+","+","-","*","-","*"],["+","+","-","*","-","+"],["+","+","-","*","-","-"],["+","+","-","+","*","*"],["+","+","-","+","*","+"],["+","+","-","+","*","-"],["+","+","-","+","+","*"],["+","+","-","+","+","+"],["+","+","-","+","+","-"],["+","+","-","+","-","*"],["+","+","-","+","-","+"],["+","+","-","+","-","-"],["+","+","-","-","*","*"],["+","+","-","-","*","+"],["+","+","-","-","*","-"],["+","+","-","-","+","*"],["+","+","-","-","+","+"],["+","+","-","-","+","-"],["+","+","-","-","-","*"],["+","+","-","-","-","+"],["+","+","-","-","-","-"],["+","-","*","*","*","*"],["+","-","*","*","*","+"],["+","-","*","*","*","-"],["+","-","*","*","+","*"],["+","-","*","*","+","+"],["+","-","*","*","+","-"],["+","-","*","*","-","*"],["+","-","*","*","-","+"],["+","-","*","*","-","-"],["+","-","*","+","*","*"],["+","-","*","+","*","+"],["+","-","*","+","*","-"],["+","-","*","+","+","*"],["+","-","*","+","+","+"],["+","-","*","+","+","-"],["+","-","*","+","-","*"],["+","-","*","+","-","+"],["+","-","*","+","-","-"],["+","-","*","-","*","*"],["+","-","*","-","*","+"],["+","-","*","-","*","-"],["+","-","*","-","+","*"],["+","-","*","-","+","+"],["+","-","*","-","+","-"],["+","-","*","-","-","*"],["+","-","*","-","-","+"],["+","-","*","-","-","-"],["+","-","+","*","*","*"],["+","-","+","*","*","+"],["+","-","+","*","*","-"],["+","-","+","*","+","*"],["+","-","+","*","+","+"],["+","-","+","*","+","-"],["+","-","+","*","-","*"],["+","-","+","*","-","+"],["+","-","+","*","-","-"],["+","-","+","+","*","*"],["+","-","+","+","*","+"],["+","-","+","+","*","-"],["+","-","+","+","+","*"],["+","-","+","+","+","+"],["+","-","+","+","+","-"],["+","-","+","+","-","*"],["+","-","+","+","-","+"],["+","-","+","+","-","-"],["+","-","+","-","*","*"],["+","-","+","-","*","+"],["+","-","+","-","*","-"],["+","-","+","-","+","*"],["+","-","+","-","+","+"],["+","-","+","-","+","-"],["+","-","+","-","-","*"],["+","-","+","-","-","+"],["+","-","+","-","-","-"],["+","-","-","*","*","*"],["+","-","-","*","*","+"],["+","-","-","*","*","-"],["+","-","-","*","+","*"],["+","-","-","*","+","+"],["+","-","-","*","+","-"],["+","-","-","*","-","*"],["+","-","-","*","-","+"],["+","-","-","*","-","-"],["+","-","-","+","*","*"],["+","-","-","+","*","+"],["+","-","-","+","*","-"],["+","-","-","+","+","*"],["+","-","-","+","+","+"],["+","-","-","+","+","-"],["+","-","-","+","-","*"],["+","-","-","+","-","+"],["+","-","-","+","-","-"],["+","-","-","-","*","*"],["+","-","-","-","*","+"],["+","-","-","-","*","-"],["+","-","-","-","+","*"],["+","-","-","-","+","+"],["+","-","-","-","+","-"],["+","-","-","-","-","*"],["+","-","-","-","-","+"],["+","-","-","-","-","-"],["-","*","*","*","*","*"],["-","*","*","*","*","+"],["-","*","*","*","*","-"],["-","*","*","*","+","*"],["-","*","*","*","+","+"],["-","*","*","*","+","-"],["-","*","*","*","-","*"],["-","*","*","*","-","+"],["-","*","*","*","-","-"],["-","*","*","+","*","*"],["-","*","*","+","*","+"],["-","*","*","+","*","-"],["-","*","*","+","+","*"],["-","*","*","+","+","+"],["-","*","*","+","+","-"],["-","*","*","+","-","*"],["-","*","*","+","-","+"],["-","*","*","+","-","-"],["-","*","*","-","*","*"],["-","*","*","-","*","+"],["-","*","*","-","*","-"],["-","*","*","-","+","*"],["-","*","*","-","+","+"],["-","*","*","-","+","-"],["-","*","*","-","-","*"],["-","*","*","-","-","+"],["-","*","*","-","-","-"],["-","*","+","*","*","*"],["-","*","+","*","*","+"],["-","*","+","*","*","-"],["-","*","+","*","+","*"],["-","*","+","*","+","+"],["-","*","+","*","+","-"],["-","*","+","*","-","*"],["-","*","+","*","-","+"],["-","*","+","*","-","-"],["-","*","+","+","*","*"],["-","*","+","+","*","+"],["-","*","+","+","*","-"],["-","*","+","+","+","*"],["-","*","+","+","+","+"],["-","*","+","+","+","-"],["-","*","+","+","-","*"],["-","*","+","+","-","+"],["-","*","+","+","-","-"],["-","*","+","-","*","*"],["-","*","+","-","*","+"],["-","*","+","-","*","-"],["-","*","+","-","+","*"],["-","*","+","-","+","+"],["-","*","+","-","+","-"],["-","*","+","-","-","*"],["-","*","+","-","-","+"],["-","*","+","-","-","-"],["-","*","-","*","*","*"],["-","*","-","*","*","+"],["-","*","-","*","*","-"],["-","*","-","*","+","*"],["-","*","-","*","+","+"],["-","*","-","*","+","-"],["-","*","-","*","-","*"],["-","*","-","*","-","+"],["-","*","-","*","-","-"],["-","*","-","+","*","*"],["-","*","-","+","*","+"],["-","*","-","+","*","-"],["-","*","-","+","+","*"],["-","*","-","+","+","+"],["-","*","-","+","+","-"],["-","*","-","+","-","*"],["-","*","-","+","-","+"],["-","*","-","+","-","-"],["-","*","-","-","*","*"],["-","*","-","-","*","+"],["-","*","-","-","*","-"],["-","*","-","-","+","*"],["-","*","-","-","+","+"],["-","*","-","-","+","-"],["-","*","-","-","-","*"],["-","*","-","-","-","+"],["-","*","-","-","-","-"],["-","+","*","*","*","*"],["-","+","*","*","*","+"],["-","+","*","*","*","-"],["-","+","*","*","+","*"],["-","+","*","*","+","+"],["-","+","*","*","+","-"],["-","+","*","*","-","*"],["-","+","*","*","-","+"],["-","+","*","*","-","-"],["-","+","*","+","*","*"],["-","+","*","+","*","+"],["-","+","*","+","*","-"],["-","+","*","+","+","*"],["-","+","*","+","+","+"],["-","+","*","+","+","-"],["-","+","*","+","-","*"],["-","+","*","+","-","+"],["-","+","*","+","-","-"],["-","+","*","-","*","*"],["-","+","*","-","*","+"],["-","+","*","-","*","-"],["-","+","*","-","+","*"],["-","+","*","-","+","+"],["-","+","*","-","+","-"],["-","+","*","-","-","*"],["-","+","*","-","-","+"],["-","+","*","-","-","-"],["-","+","+","*","*","*"],["-","+","+","*","*","+"],["-","+","+","*","*","-"],["-","+","+","*","+","*"],["-","+","+","*","+","+"],["-","+","+","*","+","-"],["-","+","+","*","-","*"],["-","+","+","*","-","+"],["-","+","+","*","-","-"],["-","+","+","+","*","*"],["-","+","+","+","*","+"],["-","+","+","+","*","-"],["-","+","+","+","+","*"],["-","+","+","+","+","+"],["-","+","+","+","+","-"],["-","+","+","+","-","*"],["-","+","+","+","-","+"],["-","+","+","+","-","-"],["-","+","+","-","*","*"],["-","+","+","-","*","+"],["-","+","+","-","*","-"],["-","+","+","-","+","*"],["-","+","+","-","+","+"],["-","+","+","-","+","-"],["-","+","+","-","-","*"],["-","+","+","-","-","+"],["-","+","+","-","-","-"],["-","+","-","*","*","*"],["-","+","-","*","*","+"],["-","+","-","*","*","-"],["-","+","-","*","+","*"],["-","+","-","*","+","+"],["-","+","-","*","+","-"],["-","+","-","*","-","*"],["-","+","-","*","-","+"],["-","+","-","*","-","-"],["-","+","-","+","*","*"],["-","+","-","+","*","+"],["-","+","-","+","*","-"],["-","+","-","+","+","*"],["-","+","-","+","+","+"],["-","+","-","+","+","-"],["-","+","-","+","-","*"],["-","+","-","+","-","+"],["-","+","-","+","-","-"],["-","+","-","-","*","*"],["-","+","-","-","*","+"],["-","+","-","-","*","-"],["-","+","-","-","+","*"],["-","+","-","-","+","+"],["-","+","-","-","+","-"],["-","+","-","-","-","*"],["-","+","-","-","-","+"],["-","+","-","-","-","-"],["-","-","*","*","*","*"],["-","-","*","*","*","+"],["-","-","*","*","*","-"],["-","-","*","*","+","*"],["-","-","*","*","+","+"],["-","-","*","*","+","-"],["-","-","*","*","-","*"],["-","-","*","*","-","+"],["-","-","*","*","-","-"],["-","-","*","+","*","*"],["-","-","*","+","*","+"],["-","-","*","+","*","-"],["-","-","*","+","+","*"],["-","-","*","+","+","+"],["-","-","*","+","+","-"],["-","-","*","+","-","*"],["-","-","*","+","-","+"],["-","-","*","+","-","-"],["-","-","*","-","*","*"],["-","-","*","-","*","+"],["-","-","*","-","*","-"],["-","-","*","-","+","*"],["-","-","*","-","+","+"],["-","-","*","-","+","-"],["-","-","*","-","-","*"],["-","-","*","-","-","+"],["-","-","*","-","-","-"],["-","-","+","*","*","*"],["-","-","+","*","*","+"],["-","-","+","*","*","-"],["-","-","+","*","+","*"],["-","-","+","*","+","+"],["-","-","+","*","+","-"],["-","-","+","*","-","*"],["-","-","+","*","-","+"],["-","-","+","*","-","-"],["-","-","+","+","*","*"],["-","-","+","+","*","+"],["-","-","+","+","*","-"],["-","-","+","+","+","*"],["-","-","+","+","+","+"],["-","-","+","+","+","-"],["-","-","+","+","-","*"],["-","-","+","+","-","+"],["-","-","+","+","-","-"],["-","-","+","-","*","*"],["-","-","+","-","*","+"],["-","-","+","-","*","-"],["-","-","+","-","+","*"],["-","-","+","-","+","+"],["-","-","+","-","+","-"],["-","-","+","-","-","*"],["-","-","+","-","-","+"],["-","-","+","-","-","-"],["-","-","-","*","*","*"],["-","-","-","*","*","+"],["-","-","-","*","*","-"],["-","-","-","*","+","*"],["-","-","-","*","+","+"],["-","-","-","*","+","-"],["-","-","-","*","-","*"],["-","-","-","*","-","+"],["-","-","-","*","-","-"],["-","-","-","+","*","*"],["-","-","-","+","*","+"],["-","-","-","+","*","-"],["-","-","-","+","+","*"],["-","-","-","+","+","+"],["-","-","-","+","+","-"],["-","-","-","+","-","*"],["-","-","-","+","-","+"],["-","-","-","+","-","-"],["-","-","-","-","*","*"],["-","-","-","-","*","+"],["-","-","-","-","*","-"],["-","-","-","-","+","*"],["-","-","-","-","+","+"],["-","-","-","-","+","-"],["-","-","-","-","-","*"],["-","-","-","-","-","+"],["-","-","-","-","-","-"]]]]
+ [
+ [
+ [1,1]
+ ],
+
+ [
+ [1,1,1],
+ [1,2],
+ [2,1]
+ ],
+
+ [
+ [1,1,1,1],
+ [1,1,2],
+ [1,2,1],
+ [2,1,1],
+ [1,3],
+ [3,1],
+ [2,2]
+ ],
+
+ [
+ [1,1,1,1,1],
+ [1,1,1,2],
+ [1,1,2,1],
+ [1,2,1,1],
+ [2,1,1,1],
+ [1,1,3],
+ [1,3,1],
+ [3,1,1],
+ [1,2,2],
+ [2,1,2],
+ [2,2,1],
+ [1,4],
+ [4,1],
+ [2,3],
+ [3,2]
+ ],
+
+ [
+ [1,1,1,1,1,1],
+ [1,1,1,1,2],
+ [1,1,1,2,1],
+ [1,1,2,1,1],
+ [1,2,1,1,1],
+ [2,1,1,1,1],
+ [1,1,1,3],
+ [1,1,3,1],
+ [1,3,1,1],
+ [3,1,1,1],
+ [1,1,2,2],
+ [1,2,1,2],
+ [1,2,2,1],
+ [2,1,1,2],
+ [2,1,2,1],
+ [2,2,1,1],
+ [1,1,4],
+ [1,4,1],
+ [4,1,1],
+ [1,2,3],
+ [1,3,2],
+ [2,1,3],
+ [2,3,1],
+ [3,1,2],
+ [3,2,1],
+ [1,5],
+ [5,1],
+ [2,2,2],
+ [2,4],
+ [4,2],
+ [3,3]
+ ],
+
+ [
+ [1,1,1,1,1,1,1],
+ [1,1,1,1,1,2],
+ [1,1,1,1,2,1],
+ [1,1,1,2,1,1],
+ [1,1,2,1,1,1],
+ [1,2,1,1,1,1],
+ [2,1,1,1,1,1],
+ [1,1,1,1,3],
+ [1,1,1,3,1],
+ [1,1,3,1,1],
+ [1,3,1,1,1],
+ [3,1,1,1,1],
+ [1,1,1,2,2],
+ [1,1,2,1,2],
+ [1,1,2,2,1],
+ [1,2,1,1,2],
+ [1,2,1,2,1],
+ [1,2,2,1,1],
+ [2,1,1,1,2],
+ [2,1,1,2,1],
+ [2,1,2,1,1],
+ [2,2,1,1,1],
+ [1,1,1,4],
+ [1,1,4,1],
+ [1,4,1,1],
+ [4,1,1,1],
+ [1,1,2,3],
+ [1,1,3,2],
+ [1,2,1,3],
+ [1,2,3,1],
+ [1,3,1,2],
+ [1,3,2,1],
+ [2,1,1,3],
+ [2,1,3,1],
+ [2,3,1,1],
+ [3,1,1,2],
+ [3,1,2,1],
+ [3,2,1,1],
+ [1,1,5],
+ [1,5,1],
+ [5,1,1],
+ [1,2,2,2],
+ [2,1,2,2],
+ [2,2,1,2],
+ [2,2,2,1],
+ [1,2,4],
+ [1,4,2],
+ [2,1,4],
+ [2,4,1],
+ [4,1,2],
+ [4,2,1],
+ [1,3,3],
+ [3,1,3],
+ [3,3,1],
+ [1,6],
+ [6,1],
+ [2,2,3],
+ [2,3,2],
+ [3,2,2],
+ [2,5],
+ [5,2],
+ [3,4],
+ [4,3]
+ ]
+ ],
+
+ [
+ [
+ ["*"],
+ ["+"],
+ ["-"]
+ ],
+
+ [
+ ["*","*"],
+ ["*","+"],
+ ["*","-"],
+ ["+","*"],
+ ["+","+"],
+ ["+","-"],
+ ["-","*"],
+ ["-","+"],
+ ["-","-"]
+ ],
+
+ [
+ ["*","*","*"],
+ ["*","*","+"],
+ ["*","*","-"],
+ ["*","+","*"],
+ ["*","+","+"],
+ ["*","+","-"],
+ ["*","-","*"],
+ ["*","-","+"],
+ ["*","-","-"],
+ ["+","*","*"],
+ ["+","*","+"],
+ ["+","*","-"],
+ ["+","+","*"],
+ ["+","+","+"],
+ ["+","+","-"],
+ ["+","-","*"],
+ ["+","-","+"],
+ ["+","-","-"],
+ ["-","*","*"],
+ ["-","*","+"],
+ ["-","*","-"],
+ ["-","+","*"],
+ ["-","+","+"],
+ ["-","+","-"],
+ ["-","-","*"],
+ ["-","-","+"],
+ ["-","-","-"]
+ ],
+
+ [
+ ["*","*","*","*"],
+ ["*","*","*","+"],
+ ["*","*","*","-"],
+ ["*","*","+","*"],
+ ["*","*","+","+"],
+ ["*","*","+","-"],
+ ["*","*","-","*"],
+ ["*","*","-","+"],
+ ["*","*","-","-"],
+ ["*","+","*","*"],
+ ["*","+","*","+"],
+ ["*","+","*","-"],
+ ["*","+","+","*"],
+ ["*","+","+","+"],
+ ["*","+","+","-"],
+ ["*","+","-","*"],
+ ["*","+","-","+"],
+ ["*","+","-","-"],
+ ["*","-","*","*"],
+ ["*","-","*","+"],
+ ["*","-","*","-"],
+ ["*","-","+","*"],
+ ["*","-","+","+"],
+ ["*","-","+","-"],
+ ["*","-","-","*"],
+ ["*","-","-","+"],
+ ["*","-","-","-"],
+ ["+","*","*","*"],
+ ["+","*","*","+"],
+ ["+","*","*","-"],
+ ["+","*","+","*"],
+ ["+","*","+","+"],
+ ["+","*","+","-"],
+ ["+","*","-","*"],
+ ["+","*","-","+"],
+ ["+","*","-","-"],
+ ["+","+","*","*"],
+ ["+","+","*","+"],
+ ["+","+","*","-"],
+ ["+","+","+","*"],
+ ["+","+","+","+"],
+ ["+","+","+","-"],
+ ["+","+","-","*"],
+ ["+","+","-","+"],
+ ["+","+","-","-"],
+ ["+","-","*","*"],
+ ["+","-","*","+"],
+ ["+","-","*","-"],
+ ["+","-","+","*"],
+ ["+","-","+","+"],
+ ["+","-","+","-"],
+ ["+","-","-","*"],
+ ["+","-","-","+"],
+ ["+","-","-","-"],
+ ["-","*","*","*"],
+ ["-","*","*","+"],
+ ["-","*","*","-"],
+ ["-","*","+","*"],
+ ["-","*","+","+"],
+ ["-","*","+","-"],
+ ["-","*","-","*"],
+ ["-","*","-","+"],
+ ["-","*","-","-"],
+ ["-","+","*","*"],
+ ["-","+","*","+"],
+ ["-","+","*","-"],
+ ["-","+","+","*"],
+ ["-","+","+","+"],
+ ["-","+","+","-"],
+ ["-","+","-","*"],
+ ["-","+","-","+"],
+ ["-","+","-","-"],
+ ["-","-","*","*"],
+ ["-","-","*","+"],
+ ["-","-","*","-"],
+ ["-","-","+","*"],
+ ["-","-","+","+"],
+ ["-","-","+","-"],
+ ["-","-","-","*"],
+ ["-","-","-","+"],
+ ["-","-","-","-"]
+ ],
+
+ [
+ ["*","*","*","*","*"],
+ ["*","*","*","*","+"],
+ ["*","*","*","*","-"],
+ ["*","*","*","+","*"],
+ ["*","*","*","+","+"],
+ ["*","*","*","+","-"],
+ ["*","*","*","-","*"],
+ ["*","*","*","-","+"],
+ ["*","*","*","-","-"],
+ ["*","*","+","*","*"],
+ ["*","*","+","*","+"],
+ ["*","*","+","*","-"],
+ ["*","*","+","+","*"],
+ ["*","*","+","+","+"],
+ ["*","*","+","+","-"],
+ ["*","*","+","-","*"],
+ ["*","*","+","-","+"],
+ ["*","*","+","-","-"],
+ ["*","*","-","*","*"],
+ ["*","*","-","*","+"],
+ ["*","*","-","*","-"],
+ ["*","*","-","+","*"],
+ ["*","*","-","+","+"],
+ ["*","*","-","+","-"],
+ ["*","*","-","-","*"],
+ ["*","*","-","-","+"],
+ ["*","*","-","-","-"],
+ ["*","+","*","*","*"],
+ ["*","+","*","*","+"],
+ ["*","+","*","*","-"],
+ ["*","+","*","+","*"],
+ ["*","+","*","+","+"],
+ ["*","+","*","+","-"],
+ ["*","+","*","-","*"],
+ ["*","+","*","-","+"],
+ ["*","+","*","-","-"],
+ ["*","+","+","*","*"],
+ ["*","+","+","*","+"],
+ ["*","+","+","*","-"],
+ ["*","+","+","+","*"],
+ ["*","+","+","+","+"],
+ ["*","+","+","+","-"],
+ ["*","+","+","-","*"],
+ ["*","+","+","-","+"],
+ ["*","+","+","-","-"],
+ ["*","+","-","*","*"],
+ ["*","+","-","*","+"],
+ ["*","+","-","*","-"],
+ ["*","+","-","+","*"],
+ ["*","+","-","+","+"],
+ ["*","+","-","+","-"],
+ ["*","+","-","-","*"],
+ ["*","+","-","-","+"],
+ ["*","+","-","-","-"],
+ ["*","-","*","*","*"],
+ ["*","-","*","*","+"],
+ ["*","-","*","*","-"],
+ ["*","-","*","+","*"],
+ ["*","-","*","+","+"],
+ ["*","-","*","+","-"],
+ ["*","-","*","-","*"],
+ ["*","-","*","-","+"],
+ ["*","-","*","-","-"],
+ ["*","-","+","*","*"],
+ ["*","-","+","*","+"],
+ ["*","-","+","*","-"],
+ ["*","-","+","+","*"],
+ ["*","-","+","+","+"],
+ ["*","-","+","+","-"],
+ ["*","-","+","-","*"],
+ ["*","-","+","-","+"],
+ ["*","-","+","-","-"],
+ ["*","-","-","*","*"],
+ ["*","-","-","*","+"],
+ ["*","-","-","*","-"],
+ ["*","-","-","+","*"],
+ ["*","-","-","+","+"],
+ ["*","-","-","+","-"],
+ ["*","-","-","-","*"],
+ ["*","-","-","-","+"],
+ ["*","-","-","-","-"],
+ ["+","*","*","*","*"],
+ ["+","*","*","*","+"],
+ ["+","*","*","*","-"],
+ ["+","*","*","+","*"],
+ ["+","*","*","+","+"],
+ ["+","*","*","+","-"],
+ ["+","*","*","-","*"],
+ ["+","*","*","-","+"],
+ ["+","*","*","-","-"],
+ ["+","*","+","*","*"],
+ ["+","*","+","*","+"],
+ ["+","*","+","*","-"],
+ ["+","*","+","+","*"],
+ ["+","*","+","+","+"],
+ ["+","*","+","+","-"],
+ ["+","*","+","-","*"],
+ ["+","*","+","-","+"],
+ ["+","*","+","-","-"],
+ ["+","*","-","*","*"],
+ ["+","*","-","*","+"],
+ ["+","*","-","*","-"],
+ ["+","*","-","+","*"],
+ ["+","*","-","+","+"],
+ ["+","*","-","+","-"],
+ ["+","*","-","-","*"],
+ ["+","*","-","-","+"],
+ ["+","*","-","-","-"],
+ ["+","+","*","*","*"],
+ ["+","+","*","*","+"],
+ ["+","+","*","*","-"],
+ ["+","+","*","+","*"],
+ ["+","+","*","+","+"],
+ ["+","+","*","+","-"],
+ ["+","+","*","-","*"],
+ ["+","+","*","-","+"],
+ ["+","+","*","-","-"],
+ ["+","+","+","*","*"],
+ ["+","+","+","*","+"],
+ ["+","+","+","*","-"],
+ ["+","+","+","+","*"],
+ ["+","+","+","+","+"],
+ ["+","+","+","+","-"],
+ ["+","+","+","-","*"],
+ ["+","+","+","-","+"],
+ ["+","+","+","-","-"],
+ ["+","+","-","*","*"],
+ ["+","+","-","*","+"],
+ ["+","+","-","*","-"],
+ ["+","+","-","+","*"],
+ ["+","+","-","+","+"],
+ ["+","+","-","+","-"],
+ ["+","+","-","-","*"],
+ ["+","+","-","-","+"],
+ ["+","+","-","-","-"],
+ ["+","-","*","*","*"],
+ ["+","-","*","*","+"],
+ ["+","-","*","*","-"],
+ ["+","-","*","+","*"],
+ ["+","-","*","+","+"],
+ ["+","-","*","+","-"],
+ ["+","-","*","-","*"],
+ ["+","-","*","-","+"],
+ ["+","-","*","-","-"],
+ ["+","-","+","*","*"],
+ ["+","-","+","*","+"],
+ ["+","-","+","*","-"],
+ ["+","-","+","+","*"],
+ ["+","-","+","+","+"],
+ ["+","-","+","+","-"],
+ ["+","-","+","-","*"],
+ ["+","-","+","-","+"],
+ ["+","-","+","-","-"],
+ ["+","-","-","*","*"],
+ ["+","-","-","*","+"],
+ ["+","-","-","*","-"],
+ ["+","-","-","+","*"],
+ ["+","-","-","+","+"],
+ ["+","-","-","+","-"],
+ ["+","-","-","-","*"],
+ ["+","-","-","-","+"],
+ ["+","-","-","-","-"],
+ ["-","*","*","*","*"],
+ ["-","*","*","*","+"],
+ ["-","*","*","*","-"],
+ ["-","*","*","+","*"],
+ ["-","*","*","+","+"],
+ ["-","*","*","+","-"],
+ ["-","*","*","-","*"],
+ ["-","*","*","-","+"],
+ ["-","*","*","-","-"],
+ ["-","*","+","*","*"],
+ ["-","*","+","*","+"],
+ ["-","*","+","*","-"],
+ ["-","*","+","+","*"],
+ ["-","*","+","+","+"],
+ ["-","*","+","+","-"],
+ ["-","*","+","-","*"],
+ ["-","*","+","-","+"],
+ ["-","*","+","-","-"],
+ ["-","*","-","*","*"],
+ ["-","*","-","*","+"],
+ ["-","*","-","*","-"],
+ ["-","*","-","+","*"],
+ ["-","*","-","+","+"],
+ ["-","*","-","+","-"],
+ ["-","*","-","-","*"],
+ ["-","*","-","-","+"],
+ ["-","*","-","-","-"],
+ ["-","+","*","*","*"],
+ ["-","+","*","*","+"],
+ ["-","+","*","*","-"],
+ ["-","+","*","+","*"],
+ ["-","+","*","+","+"],
+ ["-","+","*","+","-"],
+ ["-","+","*","-","*"],
+ ["-","+","*","-","+"],
+ ["-","+","*","-","-"],
+ ["-","+","+","*","*"],
+ ["-","+","+","*","+"],
+ ["-","+","+","*","-"],
+ ["-","+","+","+","*"],
+ ["-","+","+","+","+"],
+ ["-","+","+","+","-"],
+ ["-","+","+","-","*"],
+ ["-","+","+","-","+"],
+ ["-","+","+","-","-"],
+ ["-","+","-","*","*"],
+ ["-","+","-","*","+"],
+ ["-","+","-","*","-"],
+ ["-","+","-","+","*"],
+ ["-","+","-","+","+"],
+ ["-","+","-","+","-"],
+ ["-","+","-","-","*"],
+ ["-","+","-","-","+"],
+ ["-","+","-","-","-"],
+ ["-","-","*","*","*"],
+ ["-","-","*","*","+"],
+ ["-","-","*","*","-"],
+ ["-","-","*","+","*"],
+ ["-","-","*","+","+"],
+ ["-","-","*","+","-"],
+ ["-","-","*","-","*"],
+ ["-","-","*","-","+"],
+ ["-","-","*","-","-"],
+ ["-","-","+","*","*"],
+ ["-","-","+","*","+"],
+ ["-","-","+","*","-"],
+ ["-","-","+","+","*"],
+ ["-","-","+","+","+"],
+ ["-","-","+","+","-"],
+ ["-","-","+","-","*"],
+ ["-","-","+","-","+"],
+ ["-","-","+","-","-"],
+ ["-","-","-","*","*"],
+ ["-","-","-","*","+"],
+ ["-","-","-","*","-"],
+ ["-","-","-","+","*"],
+ ["-","-","-","+","+"],
+ ["-","-","-","+","-"],
+ [