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.Boolean"]=n["Data.Boolean"]||{}).otherwise=!0}(),function(t){"use strict";(n["Data.Eq"]=n["Data.Eq"]||{}).refEq=function(n){return function(t){return n===t}}}(),function(t){"use strict";(n["Data.Unit"]=n["Data.Unit"]||{}).unit={}}(),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";var a=n["Data.Unit"];n["Data.Show"];t.unit=a.unit}(n["Data.Unit"]=n["Data.Unit"]||{}),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);t.Eq=r,t.eq=function(n){return n.eq},t.eqInt=e}(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(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.Semiring"],n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.Row"],n["Type.Data.RowList"];t.Semiring=function(n,t,a,r){this.add=n,this.mul=t,this.one=a,this.zero=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}}(n["Data.Semiring"]=n["Data.Semiring"]||{}),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=function(n){return n.compare};t.Ord=e,t.compare=i,t.comparing=function(n){return function(t){return function(a){return function(r){return i(n)(t(a))(t(r))}}}},t.ordInt=o}(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)}}}}(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"],n["Data.Functor"],n["Data.Unit"],function(n,t){this.Apply0=n,this.bind=t}),o=function(n){this.discard=n},i=new e(function(){return r.applyArray},a.arrayBind),u=function(n){return n.bind},c=new o(function(n){return u(n)});t.Bind=e,t.bind=u,t.Discard=o,t.discard=function(n){return n.discard},t.bindArray=i,t.discardUnit=c}(n["Control.Bind"]=n["Control.Bind"]||{}),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"],n["Data.Functor"]),i=(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}()),u=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}(),c=new o.Functor(function(n){return function(t){return t instanceof u?new u(n(t.value0)):i.value}}),f=new r.Apply(function(){return c},function(n){return function(t){if(n instanceof u)return o.map(c)(n.value0)(t);if(n instanceof i)return i.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 67, column 35): "+[n.constructor.name,t.constructor.name])}}),l=new e.Bind(function(){return f},function(n){return function(t){if(n instanceof u)return t(n.value0);if(n instanceof i)return i.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 125, column 33): "+[n.constructor.name,t.constructor.name])}}),s=new a.Applicative(function(){return f},u.create);t.Nothing=i,t.Just=u,t.maybe=function(n){return function(t){return function(a){if(a instanceof i)return n;if(a instanceof u)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])}}},t.functorMaybe=c,t.applyMaybe=f,t.applicativeMaybe=s,t.bindMaybe=l}(n["Data.Maybe"]=n["Data.Maybe"]||{}),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])}}},s=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])}}),D=new e.Bind(function(){return s},l(function(n){return function(t){return new u(n)}})(function(n){return function(t){return t(n)}})),d=new a.Applicative(function(){return s},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=s,t.applicativeEither=d,t.bindEither=D}(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.length=function(n){return n.length},n.indexImpl=function(n){return function(t){return function(a){return function(r){return r<0||r>=a.length?t:n(a[r])}}}},n.sortImpl=function(n){return function(t){return t.slice().sort(function(t,a){return n(t)(a)})}},n.slice=function(n){return function(t){return function(a){return a.slice(n,t)}}},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}}(n["Data.Tuple"]=n["Data.Tuple"]||{}),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"],u=n["Data.Ordering"],c=(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"],function(n){return function(t){return a.sortImpl(function(t){return function(a){var r=n(t)(a);if(r instanceof u.GT)return 1;if(r instanceof u.EQ)return 0;if(r instanceof u.LT)return-1;throw new Error("Failed pattern match at Data.Array (line 702, column 15 - line 707, column 1): "+[r.constructor.name])}})(t)}}),f=function(n){return[n]},l=a.indexImpl(o.Just.create)(o.Nothing.value),s=e.flip(r.bind(r.bindArray));t.singleton=f,t.head=function(n){return l(n)(0)},t.index=l,t.concatMap=s,t.mapMaybe=function(n){return s(function(t){return o.maybe([])(f)(n(t))})},t.sortBy=c,t.sortWith=function(n){return function(t){return c(i.comparing(n)(t))}},t.length=a.length,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.decimal=10,t.fromStringAs=e}(n["Data.Int"]=n["Data.Int"]||{}),function(t){(n["Data.Long.Internal"]=n["Data.Long.Internal"]||{}).numberBitsToInt=function(n){return 0|n};require("long")}(),function(n){var t=require("long");n.uzero=t.UZERO,n.uone=t.UONE,n.fromInt=t.fromInt,n.add=function(n){return n.add.bind(n)},n.getHighBits=function(n){return n.getHighBits()},n.getLowBits=function(n){return n.getLowBits()},n.multiply=function(n){return n.multiply.bind(n)},n.toString=function(n){return n.toString.bind(n)}}(n["Data.Long.FFI"]=n["Data.Long.FFI"]||{}),function(t){"use strict";var a=n["Data.Long.FFI"];n["Data.Eq"],n["Data.Function.Uncurried"],n["Data.HeytingAlgebra"],n["Data.Int"],n["Data.Semigroup"],n["Data.Show"],n["Effect.Uncurried"],n.Foreign,n.Prelude;t.uzero=a.uzero,t.uone=a.uone,t.fromInt=a.fromInt,t.add=a.add,t.getHighBits=a.getHighBits,t.getLowBits=a.getLowBits,t.multiply=a.multiply,t.toString=a.toString}(n["Data.Long.FFI"]=n["Data.Long.FFI"]||{}),function(t){"use strict";var a=n["Data.Long.Internal"],r=(n["Control.Apply"],n["Control.Semigroupoid"],n["Data.Boolean"]),e=(n["Data.Bounded"],n["Data.CommutativeRing"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.Function"],n["Data.Function.Uncurried"],n["Data.Functor"],n["Data.HeytingAlgebra"],n["Data.Int"]),o=n["Data.Long.FFI"],i=n["Data.Maybe"],u=(n["Data.Nullable"],n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"]),c=(n["Data.Show"],n.Prelude,n["Test.QuickCheck"],n["Test.QuickCheck.Arbitrary"],n["Test.QuickCheck.Gen"],function(){function n(){}return n.value=new n,n}()),f=function(n){return n},l=function(n,t){this.ffiSignedness=n,this.toInt=t},s=function(n){return function(t){return o.toString(t)(n)}},D=s(e.decimal),d=new u.Semiring(function(n){return function(t){return f(o.add(n)(t))}},function(n){return function(t){return f(o.multiply(n)(t))}},f(o.uone),f(o.uzero)),g=function(n){return a.numberBitsToInt(o.getLowBits(n))},p=function(n){return a.numberBitsToInt(o.getHighBits(n))},m=new l(function(n){return!0},function(n){var t=g(n);return 0===p(n)&&t>0?new i.Just(t):i.Nothing.value}),h=function(n){return n.ffiSignedness},v=function(n){return function(t){return f(o.fromInt(t,h(n)(c.value)))}};t.SInfo=l,t.ffiSignedness=h,t.toInt=function(n){return n.toInt},t.SignProxy=c,t.unsignedLongFromInt=function(n){if(n>=0)return i.Just.create(v(m)(n));if(r.otherwise)return i.Nothing.value;throw new Error("Failed pattern match at Data.Long.Internal (line 150, column 1 - line 150, column 52): "+[n.constructor.name])},t.unsafeFromInt=v,t.highBits=p,t.lowBits=g,t.toString=D,t.toStringAs=s,t.infoUnsigned=m,t.semiringLongUnsigned=d}(n["Data.Long.Internal"]=n["Data.Long.Internal"]||{}),function(t){"use strict";n["Data.Int"];var a=n["Data.Long.Internal"],r=(n["Data.Maybe"],a.toString),e=a.unsignedLongFromInt;t.fromInt=e,t.toString=r}(n["Data.Long.Unsigned"]=n["Data.Long.Unsigned"]||{}),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["Control.Applicative"],r=n["Control.Bind"],e=n["Control.Monad.Rec.Class"],o=n["Data.Array"],i=n["Data.Either"],u=(n["Data.Eq"],n["Data.Int"]),c=n["Data.Long.Internal"],f=n["Data.Long.Unsigned"],l=n["Data.Maybe"],s=n["Data.Ord"],D=(n["Data.Ring"],n["Data.Semigroup"],n["Data.Semiring"]),d=n["Data.Show"],g=(n["Data.String"],n["Data.String.Common"]),p=(n["Data.String.Pattern"],n["Data.Tuple"]),m=n["Data.Unit"],h=n["Partial.Unsafe"],v=(n.Prelude,function(n){var t=g.split("\n")(g.trim(n));return r.bind(i.bindEither)(r.bind(i.bindEither)(i.note("nms")(o.head(t)))(function(n){return r.bind(i.bindEither)(a.pure(i.applicativeEither)(o.drop(1)(t)))(function(t){return a.pure(i.applicativeEither)({abss:t,nms:n})})}))(function(n){return r.bind(i.bindEither)(2===(t=g.split(" ")(n.nms)).length?r.bind(i.bindEither)(i.note("n")(u.fromString(t[0])))(function(n){return r.bind(i.bindEither)(i.note("m")(u.fromString(t[1])))(function(t){return a.pure(i.applicativeEither)({m:t,n:n})})}):new i.Left("n m"))(function(t){return r.bind(i.bindEither)(a.pure(i.applicativeEither)(o.mapMaybe(function(n){var t=g.split(" ")(n);return 2===t.length?r.bind(l.bindMaybe)(u.fromString(t[0]))(function(n){return r.bind(l.bindMaybe)(u.fromString(t[1]))(function(t){return a.pure(l.applicativeMaybe)(new p.Tuple(n,t))})}):l.Nothing.value})(n.abss)))(function(n){return r.discard(r.discardUnit)(i.bindEither)(o.length(n)===t.n?a.pure(i.applicativeEither)(m.unit):new i.Left("abs length"))(function(){return a.pure(i.applicativeEither)(f.toString((r=t.m,function(n){var t=function(n){var t=f.fromInt(n);if(t instanceof l.Nothing)return h.unsafeCrashWith("Longs.fromInt "+d.show(d.showInt)(n));if(t instanceof l.Just)return t.value0;throw new Error("Failed pattern match at AtCoder.ABC121.C (line 59, column 7 - line 61, column 20): "+[t.constructor.name])},a=o.sortWith(s.ordInt)(p.fst)(n);return e.tailRec(function(n){var r=o.index(a)(n.i);if(r instanceof l.Nothing)return new e.Done(n.n);if(r instanceof l.Just){var i=n["m'"]-r.value0.value1|0,u=t(r.value0.value0);return i<0?new e.Done(D.add(c.semiringLongUnsigned)(n.n)(D.mul(c.semiringLongUnsigned)(u)(t(n["m'"])))):new e.Loop({i:n.i+1|0,"m'":i,n:D.add(c.semiringLongUnsigned)(n.n)(D.mul(c.semiringLongUnsigned)(u)(t(r.value0.value1)))})}throw new Error("Failed pattern match at AtCoder.ABC121.C (line 63, column 7 - line 75, column 74): "+[r.constructor.name])})({i:0,"m'":r,n:D.zero(c.semiringLongUnsigned)})})(n)));var r})})});var t})});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.ABC121.C (line 22, column 3 - line 24, column 17): "+[t.constructor.name])}}(n["AtCoder.ABC121.C"]=n["AtCoder.ABC121.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}(),s=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=s}(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.ABC121.C"],r=(n["Control.Applicative"],n["Control.Bind"],n.Effect,n["Effect.Console"]),e=n["Node.Encoding"],o=n["Node.FS.Sync"],i=(n.Prelude,a.solve);t.main=function(){var n=o.readTextFile(e.UTF8.value)("/dev/stdin")(),t=i(n);return r.log(t)()}}(n.Main=n.Main||{}),n.Main.main()},{}]},{},["Focm"],null);