parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Focm":[function(require,module,exports) {
var n={};!function(t){"use strict";(n["Control.Apply"]=n["Control.Apply"]||{}).arrayApply=function(n){return function(t){for(var a=n.length,r=t.length,e=new Array(a*r),o=0,i=0;i<a;i++)for(var u=n[i],c=0;c<r;c++)e[o++]=u(t[c]);return e}}}(),function(t){"use strict";(n["Data.Eq"]=n["Data.Eq"]||{}).refEq=function(n){return function(t){return n===t}}}(),function(t){"use strict";var a=n["Data.Eq"],r=(n["Data.HeytingAlgebra"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.eq=n}),e=new r(a.refEq),o=new r(a.refEq);t.Eq=r,t.eq=function(n){return n.eq},t.eqInt=e,t.eqChar=o}(n["Data.Eq"]=n["Data.Eq"]||{}),function(t){"use strict";(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}).unsafeCompareImpl=function(n){return function(t){return function(a){return function(r){return function(e){return r<e?n:r===e?t:a}}}}}}(),function(n){"use strict";n.concatString=function(n){return function(t){return n+t}},n.concatArray=function(n){return function(t){return 0===n.length?t:0===t.length?n:n.concat(t)}}}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(t){"use strict";var a=n["Data.Semigroup"],r=(n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.append=n}),e=new r(a.concatString),o=new r(a.concatArray);t.Semigroup=r,t.append=function(n){return n.append},t.semigroupString=e,t.semigroupArray=o}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(t){"use strict";(n["Data.Show"]=n["Data.Show"]||{}).showIntImpl=function(n){return n.toString()}}(),function(t){"use strict";var a=n["Data.Show"],r=(n["Data.Symbol"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.show=n}),e=new r(a.showIntImpl);t.Show=r,t.show=function(n){return n.show},t.showInt=e}(n["Data.Show"]=n["Data.Show"]||{}),function(t){"use strict";n["Data.Eq"],n["Data.Semigroup"],n["Data.Show"];var a=function(){function n(){}return n.value=new n,n}(),r=function(){function n(){}return n.value=new n,n}(),e=function(){function n(){}return n.value=new n,n}();t.LT=a,t.GT=r,t.EQ=e}(n["Data.Ordering"]=n["Data.Ordering"]||{}),function(t){"use strict";var a=n["Data.Ord.Unsafe"],r=n["Data.Ordering"],e=a.unsafeCompareImpl(r.LT.value)(r.EQ.value)(r.GT.value);t.unsafeCompare=e}(n["Data.Ord.Unsafe"]=n["Data.Ord.Unsafe"]||{}),function(t){"use strict";(n["Data.Ring"]=n["Data.Ring"]||{}).intSub=function(n){return function(t){return n-t|0}}}(),function(n){"use strict";n.intAdd=function(n){return function(t){return n+t|0}},n.intMul=function(n){return function(t){return n*t|0}}}(n["Data.Semiring"]=n["Data.Semiring"]||{}),function(t){"use strict";var a=n["Data.Semiring"],r=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.Row"],n["Type.Data.RowList"],function(n,t,a,r){this.add=n,this.mul=t,this.one=a,this.zero=r}),e=new r(a.intAdd,a.intMul,1,0);t.Semiring=r,t.add=function(n){return n.add},t.zero=function(n){return n.zero},t.mul=function(n){return n.mul},t.one=function(n){return n.one},t.semiringInt=e}(n["Data.Semiring"]=n["Data.Semiring"]||{}),function(t){"use strict";var a=n["Data.Ring"],r=n["Data.Semiring"],e=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Semiring0=n,this.sub=t}),o=new e(function(){return r.semiringInt},a.intSub);t.Ring=e,t.sub=function(n){return n.sub},t.ringInt=o}(n["Data.Ring"]=n["Data.Ring"]||{}),function(t){"use strict";n["Data.Ord"];var a=n["Data.Eq"],r=n["Data.Ord.Unsafe"],e=(n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Eq0=n,this.compare=t}),o=new e(function(){return a.eqInt},r.unsafeCompare),i=new e(function(){return a.eqChar},r.unsafeCompare);t.Ord=e,t.compare=function(n){return n.compare},t.ordInt=o,t.ordChar=i}(n["Data.Ord"]=n["Data.Ord"]||{}),function(t){"use strict";n["Control.Category"],n["Data.Boolean"],n["Data.Ord"],n["Data.Ring"];t.flip=function(n){return function(t){return function(a){return n(a)(t)}}},t.const=function(n){return function(t){return n}}}(n["Data.Function"]=n["Data.Function"]||{}),function(t){"use strict";(n["Data.Functor"]=n["Data.Functor"]||{}).arrayMap=function(n){return function(t){for(var a=t.length,r=new Array(a),e=0;e<a;e++)r[e]=n(t[e]);return r}}}(),function(t){"use strict";var a=n["Data.Functor"],r=(n["Control.Semigroupoid"],n["Data.Function"],n["Data.Unit"],function(n){this.map=n}),e=new r(a.arrayMap);t.Functor=r,t.map=function(n){return n.map},t.functorArray=e}(n["Data.Functor"]=n["Data.Functor"]||{}),function(t){"use strict";var a=n["Control.Apply"],r=(n["Control.Category"],n["Data.Function"],n["Data.Functor"]),e=function(n,t){this.Functor0=n,this.apply=t},o=new e(function(){return r.functorArray},a.arrayApply);t.Apply=e,t.apply=function(n){return n.apply},t.applyArray=o}(n["Control.Apply"]=n["Control.Apply"]||{}),function(t){"use strict";n["Control.Apply"],n["Data.Functor"],n["Data.Unit"];t.Applicative=function(n,t){this.Apply0=n,this.pure=t},t.pure=function(n){return n.pure}}(n["Control.Applicative"]=n["Control.Applicative"]||{}),function(t){"use strict";(n["Control.Bind"]=n["Control.Bind"]||{}).arrayBind=function(n){return function(t){for(var a=[],r=0,e=n.length;r<e;r++)Array.prototype.push.apply(a,t(n[r]));return a}}}(),function(t){"use strict";var a=n["Control.Bind"],r=(n["Control.Applicative"],n["Control.Apply"]),e=(n["Control.Category"],n["Data.Function"]),o=(n["Data.Functor"],n["Data.Unit"],function(n,t){this.Apply0=n,this.bind=t}),i=new o(function(){return r.applyArray},a.arrayBind),u=function(n){return n.bind};t.Bind=o,t.bind=u,t.bindFlipped=function(n){return e.flip(u(n))},t.bindArray=i}(n["Control.Bind"]=n["Control.Bind"]||{}),function(n){"use strict";n.topInt=2147483647,n.bottomInt=-2147483648,n.topChar=String.fromCharCode(65535),n.bottomChar=String.fromCharCode(0)}(n["Data.Bounded"]=n["Data.Bounded"]||{}),function(t){"use strict";var a=n["Data.Bounded"],r=n["Data.Ord"],e=(n["Data.Ordering"],n["Data.Unit"],function(n,t,a){this.Ord0=n,this.bottom=t,this.top=a}),o=new e(function(){return r.ordInt},a.bottomInt,a.topInt),i=new e(function(){return r.ordChar},a.bottomChar,a.topChar);t.Bounded=e,t.bottom=function(n){return n.bottom},t.top=function(n){return n.top},t.boundedInt=o,t.boundedChar=i}(n["Data.Bounded"]=n["Data.Bounded"]||{}),function(n){"use strict";n.foldrArray=function(n){return function(t){return function(a){for(var r=t,e=a.length-1;e>=0;e--)r=n(a[e])(r);return r}}},n.foldlArray=function(n){return function(t){return function(a){for(var r=t,e=a.length,o=0;o<e;o++)r=n(r)(a[o]);return r}}}}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(n){"use strict";n.intDegree=function(n){return Math.min(Math.abs(n),2147483647)},n.intDiv=function(n){return function(t){return 0===t?0:t>0?Math.floor(n/t):-Math.floor(n/-t)}},n.intMod=function(n){return function(t){if(0===t)return 0;var a=Math.abs(t);return(n%a+a)%a}}}(n["Data.EuclideanRing"]=n["Data.EuclideanRing"]||{}),function(t){"use strict";var a=n["Data.Ring"],r=(n["Data.Semiring"],n["Data.Symbol"],n["Data.Unit"],function(n){this.Ring0=n}),e=new r(function(){return a.ringInt});t.CommutativeRing=r,t.commutativeRingInt=e}(n["Data.CommutativeRing"]=n["Data.CommutativeRing"]||{}),function(t){"use strict";var a=n["Data.EuclideanRing"],r=(n["Data.BooleanAlgebra"],n["Data.CommutativeRing"]),e=(n["Data.Eq"],n["Data.HeytingAlgebra"],n["Data.Ring"],n["Data.Semiring"],function(n,t,a,r){this.CommutativeRing0=n,this.degree=t,this.div=a,this.mod=r}),o=new e(function(){return r.commutativeRingInt},a.intDegree,a.intDiv,a.intMod);t.EuclideanRing=e,t.degree=function(n){return n.degree},t.div=function(n){return n.div},t.mod=function(n){return n.mod},t.euclideanRingInt=o}(n["Data.EuclideanRing"]=n["Data.EuclideanRing"]||{}),function(t){"use strict";n["Data.Boolean"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.Ord"],n["Data.Ordering"];var a=n["Data.Semigroup"],r=(n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n,t){this.Semigroup0=n,this.mempty=t}),e=new r(function(){return a.semigroupString},"");t.Monoid=r,t.mempty=function(n){return n.mempty},t.monoidString=e}(n["Data.Monoid"]=n["Data.Monoid"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"];var a=n["Control.Applicative"],r=n["Control.Apply"],e=n["Control.Bind"],o=(n["Control.Category"],n["Control.Extend"],n["Control.Monad"],n["Control.MonadZero"],n["Control.Plus"],n["Data.Bounded"],n["Data.Eq"],n["Data.Function"]),i=n["Data.Functor"],u=(n["Data.Functor.Invariant"],n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Unit"],n.Prelude,function(){function n(){}return n.value=new n,n}()),c=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),f=function(n){return function(t){return function(a){if(a instanceof u)return n;if(a instanceof c)return t(a.value0);throw new Error("Failed pattern match at Data.Maybe (line 217, column 1 - line 217, column 51): "+[n.constructor.name,t.constructor.name,a.constructor.name])}}},l=f(!0)(o.const(!1)),d=new i.Functor(function(n){return function(t){return t instanceof c?new c(n(t.value0)):u.value}}),s=new r.Apply(function(){return d},function(n){return function(t){if(n instanceof c)return i.map(d)(n.value0)(t);if(n instanceof u)return u.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 67, column 35): "+[n.constructor.name,t.constructor.name])}}),D=new e.Bind(function(){return s},function(n){return function(t){if(n instanceof c)return t(n.value0);if(n instanceof u)return u.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 125, column 33): "+[n.constructor.name,t.constructor.name])}}),p=new a.Applicative(function(){return s},c.create);t.Nothing=u,t.Just=c,t.maybe=f,t.isNothing=l,t.fromJust=function(n){return function(n){if(n instanceof c)return n.value0;throw new Error("Failed pattern match at Data.Maybe (line 268, column 1 - line 268, column 46): "+[n.constructor.name])}},t.functorMaybe=d,t.applyMaybe=s,t.applicativeMaybe=p,t.bindMaybe=D}(n["Data.Maybe"]=n["Data.Maybe"]||{}),function(t){"use strict";var a=n["Data.Foldable"],r=(n["Control.Alt"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Category"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Eq"],n["Data.Function"],n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Maybe"],n["Data.Maybe.First"],n["Data.Maybe.Last"],n["Data.Monoid"]),e=(n["Data.Monoid.Additive"],n["Data.Monoid.Conj"],n["Data.Monoid.Disj"],n["Data.Monoid.Dual"],n["Data.Monoid.Endo"],n["Data.Monoid.Multiplicative"],n["Data.Newtype"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"]),o=(n["Data.Semiring"],n["Data.Unit"],n.Prelude,function(n,t,a){this.foldMap=n,this.foldl=t,this.foldr=a}),i=function(n){return n.foldr},u=function(n){return n.foldl},c=function(n){return function(t){return function(a){return i(n)(function(n){return function(r){return e.append(t.Semigroup0())(a(n))(r)}})(r.mempty(t))}}},f=new o(function(n){return c(f)(n)},a.foldlArray,a.foldrArray);t.Foldable=o,t.foldr=i,t.foldl=u,t.foldMap=function(n){return n.foldMap},t.foldMapDefaultR=c,t.intercalate=function(n){return function(t){return function(a){return function(o){return u(n)(function(n){return function(r){return n.init?{init:!1,acc:r}:{init:!1,acc:e.append(t.Semigroup0())(n.acc)(e.append(t.Semigroup0())(a)(r))}}})({init:!0,acc:r.mempty(t)})(o).acc}}}},t.foldableArray=f}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";n["Control.Alt"];var a=n["Control.Applicative"],r=n["Control.Apply"],e=n["Control.Bind"],o=(n["Control.Extend"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifoldable"],n["Data.Bifunctor"],n["Data.Bitraversable"],n["Data.Bounded"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"]),i=(n["Data.Functor.Invariant"],n["Data.FunctorWithIndex"],n["Data.Maybe"]),u=(n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Unit"],n.Prelude,function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}()),c=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),f=new o.Functor(function(n){return function(t){if(t instanceof u)return new u(t.value0);if(t instanceof c)return new c(n(t.value0));throw new Error("Failed pattern match at Data.Either (line 38, column 8 - line 38, column 52): "+[t.constructor.name])}}),l=function(n){return function(t){return function(a){if(a instanceof u)return n(a.value0);if(a instanceof c)return t(a.value0);throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): "+[n.constructor.name,t.constructor.name,a.constructor.name])}}},d=new r.Apply(function(){return f},function(n){return function(t){if(n instanceof u)return new u(n.value0);if(n instanceof c)return o.map(f)(n.value0)(t);throw new Error("Failed pattern match at Data.Either (line 82, column 1 - line 82, column 41): "+[n.constructor.name,t.constructor.name])}}),s=new e.Bind(function(){return d},l(function(n){return function(t){return new u(n)}})(function(n){return function(t){return t(n)}})),D=new a.Applicative(function(){return d},c.create);t.Left=u,t.Right=c,t.either=l,t.note=function(n){return i.maybe(new u(n))(c.create)},t.functorEither=f,t.applyEither=d,t.applicativeEither=D,t.bindEither=s}(n["Data.Either"]=n["Data.Either"]||{}),function(t){"use strict";(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}).unsafePartial=function(n){return n()}}(),function(t){"use strict";(n["Partial"]=n["Partial"]||{}).crashWith=function(){return function(n){throw new Error(n)}}}(),function(t){"use strict";var a=n.Partial;t.crashWith=a.crashWith}(n.Partial=n.Partial||{}),function(t){"use strict";var a=n["Partial.Unsafe"],r=n.Partial;t.unsafeCrashWith=function(n){return a.unsafePartial(function(t){return r.crashWith(t)(n)})}}(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Bind"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifunctor"],n["Data.Either"],n["Data.Functor"],n["Data.Identity"],n["Data.Maybe"],n["Data.Unit"],n.Effect,n["Effect.Ref"],n["Partial.Unsafe"],n.Prelude;var a=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),r=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}();t.Loop=a,t.Done=r,t.tailRec=function(n){return function(t){return function(t){var e,o=!1;function i(e){if(!(e instanceof a)){if(e instanceof r)return o=!0,e.value0;throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 91, column 3 - line 91, column 25): "+[e.constructor.name])}t=n(e.value0)}for(;!o;)e=i(t);return e}(n(t))}}}(n["Control.Monad.Rec.Class"]=n["Control.Monad.Rec.Class"]||{}),function(n){"use strict";n.replicate="function"==typeof Array.prototype.fill?function(n){return function(t){return n<1?[]:new Array(n).fill(t)}}:function(n){return function(t){for(var a=[],r=0,e=0;e<n;e++)a[r++]=t;return a}},n.length=function(n){return n.length},n["uncons'"]=function(n){return function(t){return function(a){return 0===a.length?n({}):t(a[0])(a.slice(1))}}},n.indexImpl=function(n){return function(t){return function(a){return function(r){return r<0||r>=a.length?t:n(a[r])}}}},n.slice=function(n){return function(t){return function(a){return a.slice(n,t)}}},n.take=function(n){return function(t){return n<1?[]:t.slice(0,n)}},n.drop=function(n){return function(t){return n<1?t:t.slice(n)}}}(n["Data.Array"]=n["Data.Array"]||{}),function(t){"use strict";n["Control.Applicative"],n["Control.Apply"],n["Control.Biapplicative"],n["Control.Biapply"],n["Control.Bind"],n["Control.Comonad"],n["Control.Extend"],n["Control.Lazy"],n["Control.Monad"],n["Control.Semigroupoid"],n["Data.Bifoldable"],n["Data.Bifunctor"],n["Data.Bitraversable"],n["Data.BooleanAlgebra"],n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.Distributive"],n["Data.Eq"],n["Data.Foldable"],n["Data.FoldableWithIndex"],n["Data.Function"],n["Data.Functor"],n["Data.Functor.Invariant"],n["Data.FunctorWithIndex"],n["Data.HeytingAlgebra"],n["Data.Maybe"],n["Data.Maybe.First"],n["Data.Monoid"],n["Data.Newtype"],n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semigroup.Foldable"],n["Data.Semigroup.Traversable"],n["Data.Semiring"],n["Data.Show"],n["Data.Traversable"],n["Data.TraversableWithIndex"],n["Data.Unit"],n.Prelude,n["Type.Equality"];var a=function(){function n(n,t){this.value0=n,this.value1=t}return n.create=function(t){return function(a){return new n(t,a)}},n}();t.Tuple=a,t.fst=function(n){return n.value0},t.snd=function(n){return n.value1}}(n["Data.Tuple"]=n["Data.Tuple"]||{}),function(t){"use strict";(n["Data.Unfoldable"]=n["Data.Unfoldable"]||{}).unfoldrArrayImpl=function(n){return function(t){return function(a){return function(r){return function(e){return function(o){for(var i=[],u=o;;){var c=e(u);if(n(c))return i;var f=t(c);i.push(a(f)),u=r(f)}}}}}}}}(),function(t){"use strict";(n["Data.Unfoldable1"]=n["Data.Unfoldable1"]||{}).unfoldr1ArrayImpl=function(n){return function(t){return function(a){return function(r){return function(e){return function(o){for(var i=[],u=o;;){var c=e(u);i.push(a(c));var f=r(c);if(n(f))return i;u=t(f)}}}}}}}}(),function(t){"use strict";var a=n["Data.Unfoldable1"],r=(n["Data.Boolean"],n["Data.Eq"],n["Data.Maybe"]),e=(n["Data.Ord"],n["Data.Ring"],n["Data.Semigroup.Traversable"],n["Data.Semiring"],n["Data.Tuple"]),o=(n["Partial.Unsafe"],n.Prelude,function(n){this.unfoldr1=n}),i=new o(a.unfoldr1ArrayImpl(r.isNothing)(r.fromJust())(e.fst)(e.snd));t.Unfoldable1=o,t.unfoldr1=function(n){return n.unfoldr1},t.unfoldable1Array=i}(n["Data.Unfoldable1"]=n["Data.Unfoldable1"]||{}),function(t){"use strict";var a=n["Data.Unfoldable"],r=(n["Data.Function"],n["Data.Functor"],n["Data.Maybe"]),e=(n["Data.Ord"],n["Data.Ring"],n["Data.Traversable"],n["Data.Tuple"]),o=n["Data.Unfoldable1"],i=(n["Data.Unit"],n["Partial.Unsafe"],n.Prelude,function(n,t){this.Unfoldable10=n,this.unfoldr=t}),u=new i(function(){return o.unfoldable1Array},a.unfoldrArrayImpl(r.isNothing)(r.fromJust())(e.fst)(e.snd));t.Unfoldable=i,t.unfoldr=function(n){return n.unfoldr},t.unfoldableArray=u}(n["Data.Unfoldable"]=n["Data.Unfoldable"]||{}),function(t){"use strict";(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}).unsafeCoerce=function(n){return n}}(),function(t){"use strict";var a=n["Unsafe.Coerce"];t.unsafeCoerce=a.unsafeCoerce}(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}),function(t){"use strict";var a=n["Data.Array"],r=(n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"]),e=(n["Control.Category"],n["Control.Lazy"],n["Control.Monad.Rec.Class"],n["Control.Monad.ST"],n["Control.Monad.ST.Internal"],n["Control.Semigroupoid"],n["Data.Array.NonEmpty.Internal"],n["Data.Array.ST"],n["Data.Array.ST.Iterator"],n["Data.Boolean"],n["Data.Eq"],n["Data.Foldable"],n["Data.Function"]),o=(n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Maybe"]),i=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semiring"],n["Data.Traversable"],n["Data.Tuple"],n["Data.Unfoldable"],n["Partial.Unsafe"],n.Prelude,n["Unsafe.Coerce"],a["uncons'"](e.const(o.Nothing.value))(function(n){return function(n){return new o.Just(n)}})),u=function(n){return[n]},c=a.indexImpl(o.Just.create)(o.Nothing.value),f=e.flip(r.bind(r.bindArray));t.singleton=u,t.head=function(n){return c(n)(0)},t.tail=i,t.index=c,t.concatMap=f,t.mapMaybe=function(n){return f(function(t){return o.maybe([])(u)(n(t))})},t.replicate=a.replicate,t.length=a.length,t.take=a.take,t.drop=a.drop}(n["Data.Array"]=n["Data.Array"]||{}),function(t){"use strict";(n["Data.Int"]=n["Data.Int"]||{}).fromStringAsImpl=function(n){return function(t){return function(a){var r;r=a<11?"[0-"+(a-1).toString()+"]":11===a?"[0-9a]":"[0-9a-"+String.fromCharCode(86+a)+"]";var e=new RegExp("^[\\+\\-]?"+r+"+$","i");return function(r){if(e.test(r)){var o=parseInt(r,a);return(0|o)===o?n(o):t}return t}}}}}(),function(t){"use strict";var a=n["Data.Int"],r=(n["Control.Category"],n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.DivisionRing"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.HeytingAlgebra"],n["Data.Int.Bits"],n["Data.Maybe"]),e=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Show"],n.Global,n.Math,n.Prelude,a.fromStringAsImpl(r.Just.create)(r.Nothing.value)),o=e(10);t.fromString=o,t.fromStringAs=e}(n["Data.Int"]=n["Data.Int"]||{}),function(n){"use strict";var t="function"==typeof Array.from,a="undefined"!=typeof Symbol&&null!=Symbol&&void 0!==Symbol.iterator&&"function"==typeof String.prototype[Symbol.iterator],r="function"==typeof String.prototype.fromCodePoint,e="function"==typeof String.prototype.codePointAt;n._unsafeCodePointAt0=function(n){return e?function(n){return n.codePointAt(0)}:n},n._singleton=function(n){return r?String.fromCodePoint:n},n._take=function(n){return function(t){return a?function(n){for(var a="",r=n[Symbol.iterator](),e=0;e<t;++e){var o=r.next();if(o.done)return a;a+=o.value}return a}:n(t)}},n._toCodePointArray=function(n){return function(a){return t?function(n){return Array.from(n,a)}:n}}}(n["Data.String.CodePoints"]=n["Data.String.CodePoints"]||{}),function(n){"use strict";n.toCharCode=function(n){return n.charCodeAt(0)},n.fromCharCode=function(n){return String.fromCharCode(n)}}(n["Data.Enum"]=n["Data.Enum"]||{}),function(t){"use strict";var a=n["Data.Enum"],r=(n["Control.Apply"],n["Control.Bind"],n["Control.MonadPlus"],n["Control.MonadZero"],n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Bounded"]),e=(n["Data.Either"],n["Data.Eq"],n["Data.Function"],n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Maybe"]),o=(n["Data.Newtype"],n["Data.Ord"]),i=(n["Data.Ordering"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semiring"],n["Data.Show"],n["Data.Tuple"],n["Data.Unfoldable"],n["Data.Unfoldable1"],n["Data.Unit"],n["Partial.Unsafe"],n.Prelude,function(n,t,a){this.Ord0=n,this.pred=t,this.succ=a}),u=function(n,t,a,r,e){this.Bounded0=n,this.Enum1=t,this.cardinality=a,this.fromEnum=r,this.toEnum=e},c=function(n){return n.toEnum},f=function(n){return n.fromEnum},l=function(n){return function(t){return function(a){return n(t(a)+1|0)}}},d=function(n){return function(t){return function(a){return n(t(a)-1|0)}}},s=function(n){return n>=r.bottom(r.boundedInt)&&n<=r.top(r.boundedInt)?new e.Just(a.fromCharCode(n)):e.Nothing.value},D=new i(function(){return o.ordChar},d(s)(a.toCharCode),l(s)(a.toCharCode)),p=new u(function(){return r.boundedChar},function(){return D},a.toCharCode(r.top(r.boundedChar))-a.toCharCode(r.bottom(r.boundedChar))|0,a.toCharCode,s);t.Enum=i,t.succ=function(n){return n.succ},t.pred=function(n){return n.pred},t.BoundedEnum=u,t.cardinality=function(n){return n.cardinality},t.toEnum=c,t.fromEnum=f,t.toEnumWithDefaults=function(n){return function(t){return function(a){return function(o){var i=c(n)(o);if(i instanceof e.Just)return i.value0;if(i instanceof e.Nothing)return o<f(n)(r.bottom(n.Bounded0()))?t:a;throw new Error("Failed pattern match at Data.Enum (line 158, column 33 - line 160, column 62): "+[i.constructor.name])}}}},t.defaultSucc=l,t.defaultPred=d,t.enumChar=D,t.boundedEnumChar=p}(n["Data.Enum"]=n["Data.Enum"]||{}),function(n){"use strict";n.singleton=function(n){return n},n.length=function(n){return n.length},n["_indexOf'"]=function(n){return function(t){return function(a){return function(r){return function(e){if(r<0||r>e.length)return t;var o=e.indexOf(a,r);return-1===o?t:n(o)}}}}},n.drop=function(n){return function(t){return t.substring(n)}}}(n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{}),function(t){"use strict";(n["Data.String.Unsafe"]=n["Data.String.Unsafe"]||{}).charAt=function(n){return function(t){if(n>=0&&n<t.length)return t.charAt(n);throw new Error("Data.String.Unsafe.charAt: Invalid index.")}}}(),function(t){"use strict";var a=n["Data.String.Unsafe"];t.charAt=a.charAt}(n["Data.String.Unsafe"]=n["Data.String.Unsafe"]||{}),function(t){"use strict";var a=n["Data.String.CodeUnits"],r=(n["Control.Semigroupoid"],n["Data.Boolean"],n["Data.Eq"],n["Data.Function"],n["Data.HeytingAlgebra"],n["Data.Maybe"]),e=(n["Data.Ord"],n["Data.Ring"],n["Data.Semiring"],n["Data.String.Pattern"],n["Data.String.Unsafe"],n.Prelude,a["_indexOf'"](r.Just.create)(r.Nothing.value));t["indexOf'"]=e,t.singleton=a.singleton,t.length=a.length,t.drop=a.drop}(n["Data.String.CodeUnits"]=n["Data.String.CodeUnits"]||{}),function(n){"use strict";n.split=function(n){return function(t){return t.split(n)}},n.trim=function(n){return n.trim()}}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(t){"use strict";var a=n["Data.String.Common"];n["Data.Eq"],n["Data.Ordering"],n["Data.String.Pattern"],n.Prelude;t.split=a.split,t.trim=a.trim}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(t){"use strict";var a=n["Data.String.CodePoints"],r=(n["Control.Semigroupoid"],n["Data.Array"]),e=(n["Data.Boolean"],n["Data.Bounded"]),o=n["Data.Enum"],i=(n["Data.Eq"],n["Data.EuclideanRing"]),u=n["Data.Functor"],c=(n["Data.HeytingAlgebra"],n["Data.Int"],n["Data.Maybe"]),f=(n["Data.Ord"],n["Data.Ring"],n["Data.Semigroup"],n["Data.Semiring"],n["Data.Show"],n["Data.String.CodeUnits"]),l=(n["Data.String.Common"],n["Data.String.Pattern"],n["Data.String.Unsafe"]),d=n["Data.Tuple"],s=n["Data.Unfoldable"],D=(n.Prelude,function(n){return function(t){return 65536+((1024*(n-55296|0)|0)+(t-56320|0)|0)|0}}),p=function(n){return 56320<=n&&n<=57343},m=function(n){return 55296<=n&&n<=56319},g=function(n){var t=f.length(n);if(0===t)return c.Nothing.value;if(1===t)return new c.Just({head:o.fromEnum(o.boundedEnumChar)(l.charAt(0)(n)),tail:""});var a=o.fromEnum(o.boundedEnumChar)(l.charAt(1)(n)),r=o.fromEnum(o.boundedEnumChar)(l.charAt(0)(n));return m(r)&&p(a)?new c.Just({head:D(r)(a),tail:f.drop(2)(n)}):new c.Just({head:r,tail:f.drop(1)(n)})},h=function(n){return u.map(c.functorMaybe)(function(n){return new d.Tuple(n.head,n.tail)})(g(n))},C=a._unsafeCodePointAt0(function(n){var t=o.fromEnum(o.boundedEnumChar)(l.charAt(0)(n));if(m(t)&&f.length(n)>1){var a=o.fromEnum(o.boundedEnumChar)(l.charAt(1)(n));return p(a)?D(t)(a):t}return t}),v=a._toCodePointArray(function(n){return s.unfoldr(s.unfoldableArray)(h)(n)})(C),y=function(n){return f.singleton(o.toEnumWithDefaults(o.boundedEnumChar)(e.bottom(e.boundedChar))(e.top(e.boundedChar))(n))},b=a._singleton(function(n){if(n<=65535)return y(n);var t=i.div(i.euclideanRingInt)(n-65536|0)(1024)+55296|0,a=i.mod(i.euclideanRingInt)(n-65536|0)(1024)+56320|0;return y(t)+y(a)}),S=function(n){return function(t){if(n<1)return"";var a=g(t);return a instanceof c.Just?b(a.value0.head)+S(n-1|0)(a.value0.tail):t}},w=a._take(S);t.singleton=b,t.toCodePointArray=v,t.uncons=g,t.length=function(n){return r.length(v(n))},t.take=w,t.drop=function(n){return function(t){return f.drop(f.length(w(n)(t)))(t)}}}(n["Data.String.CodePoints"]=n["Data.String.CodePoints"]||{}),function(t){"use strict";var a=n["Control.Applicative"],r=n["Control.Bind"],e=n["Control.Monad.Rec.Class"],o=n["Data.Array"],i=n["Data.Either"],u=n["Data.Foldable"],c=n["Data.Int"],f=n["Data.Maybe"],l=n["Data.Monoid"],d=(n["Data.Ring"],n["Data.Semigroup"]),s=(n["Data.Semiring"],n["Data.Show"]),D=(n["Data.String"],n["Data.String.CodePoints"]),p=n["Data.String.CodeUnits"],m=n["Data.String.Common"],g=(n["Data.String.Pattern"],n["Data.Tuple"]),h=n["Partial.Unsafe"],C=(n.Prelude,function(n){var t=m.split(" ")(n);return 2===t.length?r.bind(f.bindMaybe)(c.fromString(t[0]))(function(n){return r.bind(f.bindMaybe)(c.fromString(t[1]))(function(t){return a.pure(f.applicativeMaybe)(new g.Tuple(n,t))})}):f.Nothing.value}),v=function(n){var t=m.split("\n")(m.trim(n));return r.bind(i.bindEither)(i.note("N Q")(r.bindFlipped(f.bindMaybe)(C)(o.head(t))))(function(n){return r.bind(i.bindEither)(i.note("S")(r.bindFlipped(f.bindMaybe)(o.head)(o.tail(o.take(2)(t)))))(function(n){var c,m,g=(c=n,e.tailRec(function(n){var t=p["indexOf'"]("AC")(n.i)(c);if(t instanceof f.Nothing)return new e.Done(d.append(d.semigroupArray)(n.a)(o.replicate(D.length(c)-n.i|0)(n.n)));if(t instanceof f.Just)return new e.Loop({i:t.value0+1|0,a:d.append(d.semigroupArray)(n.a)(o.replicate(1+(t.value0-n.i|0)|0)(n.n)),n:n.n+1|0});throw new Error("Failed pattern match at AtCoder.ABC122.C (line 23, column 7 - line 31, column 14): "+[t.constructor.name])})({a:[],i:0,n:0})),h=(m=g,function(n){return function(t){return m[t]-m[n]|0}}),v=o.mapMaybe(function(n){return r.bind(f.bindMaybe)(C(n))(function(n){var t=n.value1-1|0,r=n.value0-1|0;return a.pure(f.applicativeMaybe)(s.show(s.showInt)(h(r)(t)))})})(o.drop(2)(t));return a.pure(i.applicativeEither)(u.intercalate(u.foldableArray)(l.monoidString)("\n")(v))})})};t.solve=function(n){var t=v(n);if(t instanceof i.Left)return h.unsafeCrashWith(t.value0);if(t instanceof i.Right)return t.value0;throw new Error("Failed pattern match at AtCoder.ABC122.C (line 52, column 3 - line 54, column 17): "+[t.constructor.name])}}(n["AtCoder.ABC122.C"]=n["AtCoder.ABC122.C"]||{}),function(t){"use strict";(n["Effect.Console"]=n["Effect.Console"]||{}).log=function(n){return function(){return console.log(n),{}}}}(),function(t){"use strict";var a=n["Effect.Console"];n["Data.Show"],n["Data.Unit"],n.Effect;t.log=a.log}(n["Effect.Console"]=n["Effect.Console"]||{}),function(t){"use strict";n["Node.Encoding"];var a=n["Data.Show"],r=(n.Prelude,function(){function n(){}return n.value=new n,n}()),e=function(){function n(){}return n.value=new n,n}(),o=function(){function n(){}return n.value=new n,n}(),i=function(){function n(){}return n.value=new n,n}(),u=function(){function n(){}return n.value=new n,n}(),c=function(){function n(){}return n.value=new n,n}(),f=function(){function n(){}return n.value=new n,n}(),l=function(){function n(){}return n.value=new n,n}(),d=new a.Show(function(n){if(n instanceof r)return"ASCII";if(n instanceof e)return"UTF8";if(n instanceof o)return"UTF16LE";if(n instanceof i)return"UCS2";if(n instanceof u)return"Base64";if(n instanceof c)return"Latin1";if(n instanceof f)return"Binary";if(n instanceof l)return"Hex";throw new Error("Failed pattern match at Node.Encoding (line 19, column 1 - line 19, column 39): "+[n.constructor.name])});t.ASCII=r,t.UTF8=e,t.UTF16LE=o,t.UCS2=i,t.Base64=u,t.Latin1=c,t.Binary=f,t.Hex=l,t.showEncoding=d}(n["Node.Encoding"]=n["Node.Encoding"]||{}),function(t){"use strict";(n["Node.FS.Internal"]=n["Node.FS.Internal"]||{}).unsafeRequireFS=require("fs")}(),function(t){"use strict";var a=n["Node.FS.Internal"],r=(n.Effect,n.Prelude,n["Unsafe.Coerce"].unsafeCoerce);t.mkEffect=r,t.unsafeRequireFS=a.unsafeRequireFS}(n["Node.FS.Internal"]=n["Node.FS.Internal"]||{}),function(t){"use strict";n["Control.Bind"],n["Control.Semigroupoid"],n["Data.DateTime"],n["Data.DateTime.Instant"],n["Data.EuclideanRing"],n["Data.Function"],n["Data.Function.Uncurried"],n["Data.Functor"],n["Data.Int"],n["Data.Maybe"],n["Data.Nullable"];var a=n["Data.Show"],r=(n["Data.Time.Duration"],n.Effect,n["Node.Buffer"],n["Node.Encoding"]),e=(n["Node.FS"],n["Node.FS.Internal"]),o=(n["Node.FS.Perms"],n["Node.FS.Stats"],n["Node.Path"],n.Prelude,e.unsafeRequireFS);t.readTextFile=function(n){return function(t){return e.mkEffect(function(e){return o.readFileSync(t,{encoding:a.show(r.showEncoding)(n)})})}}}(n["Node.FS.Sync"]=n["Node.FS.Sync"]||{}),function(t){"use strict";var a=n["AtCoder.ABC122.C"],r=(n["Control.Applicative"],n["Control.Bind"],n.Effect,n["Effect.Console"]),e=n["Node.Encoding"],o=n["Node.FS.Sync"];n.Prelude;t.main=function(){var n=o.readTextFile(e.UTF8.value)("/dev/stdin")(),t=a.solve(n);return r.log(t)()}}(n.Main=n.Main||{}),n.Main.main();
},{}]},{},["Focm"], null)