Problem:
Score: 200 points

Problem Statement

Today, the memorable AtCoder Beginner Contest 100 takes place. On this occasion, Takahashi would like to give an integer to Ringo.

As the name of the contest is AtCoder Beginner Contest 100, Ringo would be happy if he is given a positive integer that can be divided by 100 exactly D times.

Find the N-th smallest integer that would make Ringo happy.

Constraints

D is 0, 1 or 2.

N is an integer between 1 and 100 (inclusive).

Input

Input is given from Standard Input in the following format:

D N

Output

Print the N-th smallest integer that can be divided by 100 exactly D times.

Sample Input 1

0 5

Sample Output 1

5

The integers that can be divided by 100 exactly 0 times (that is, not divisible by 100) are as follows: 1, 2, 3, 4, 5, 6, 7, ...

Thus, the 5-th smallest integer that would make Ringo happy is 5.

Sample Input 2

1 11

Sample Output 2

1100

The integers that can be divided by 100 exactly once are as follows: 100, 200, 300, 400, 500, 600, 700, 800, 900, 1 \ 000, 1 \ 100, ...

Thus, the integer we are seeking is 1 \ 100.

Sample Input 3

2 85

Sample Output 3

850000

The integers that can be divided by 100 exactly twice are as follows: 10 \ 000, 20 \ 000, 30 \ 000, ...

Thus, the integer we are seeking is 850 \ 000.

Solution in JavaScript (node.js v5.12) (judge verdict: Wrong Answer)

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 r=n.length,e=t.length,o=new Array(r*e),a=0,i=0;i<r;i++)for(var u=n[i],c=0;c<e;c++)o[a++]=u(t[c]);return o}}}(),function(n){"use strict";var t=function(n){this.compose=n},r=new t(function(n){return function(t){return function(r){return n(t(r))}}});n.compose=function(n){return n.compose},n.Semigroupoid=t,n.semigroupoidFn=r}(n["Control.Semigroupoid"]=n["Control.Semigroupoid"]||{}),function(t){"use strict";var r=n["Control.Semigroupoid"],e=function(n,t){this.Semigroupoid0=n,this.identity=t},o=new e(function(){return r.semigroupoidFn},function(n){return n});t.Category=e,t.identity=function(n){return n.identity},t.categoryFn=o}(n["Control.Category"]=n["Control.Category"]||{}),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(r){return n(r)(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 r=t.length,e=new Array(r),o=0;o<r;o++)e[o]=n(t[o]);return e}}}(),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 r=n["Data.Show"],e=(n["Data.Symbol"],n["Record.Unsafe"],n["Type.Data.RowList"],function(n){this.show=n}),o=new e(r.showIntImpl);t.Show=e,t.show=function(n){return n.show},t.showInt=o}(n["Data.Show"]=n["Data.Show"]||{}),function(t){"use strict";var r=n["Data.Unit"];n["Data.Show"];t.unit=r.unit}(n["Data.Unit"]=n["Data.Unit"]||{}),function(t){"use strict";var r=n["Data.Functor"],e=(n["Control.Semigroupoid"],n["Data.Function"]),o=n["Data.Unit"],a=function(n){this.map=n},i=function(n){return n.map},u=new a(r.arrayMap);t.Functor=a,t.map=i,t.void=function(n){return i(n)(e.const(o.unit))},t.functorArray=u}(n["Data.Functor"]=n["Data.Functor"]||{}),function(t){"use strict";var r=n["Control.Apply"],e=n["Control.Category"],o=n["Data.Function"],a=n["Data.Functor"],i=function(n,t){this.Functor0=n,this.apply=t},u=new i(function(){return a.functorArray},r.arrayApply),c=function(n){return n.apply};t.Apply=i,t.apply=c,t.applySecond=function(n){return function(t){return function(r){return c(n)(a.map(n.Functor0())(o.const(e.identity(e.categoryFn)))(t))(r)}}},t.applyArray=u}(n["Control.Apply"]=n["Control.Apply"]||{}),function(t){"use strict";var r=n["Control.Apply"],e=(n["Data.Functor"],n["Data.Unit"],function(n){return n.pure});t.Applicative=function(n,t){this.Apply0=n,this.pure=t},t.pure=e,t.liftA1=function(n){return function(t){return function(o){return r.apply(n.Apply0())(e(n)(t))(o)}}}}(n["Control.Applicative"]=n["Control.Applicative"]||{}),function(t){"use strict";(n["Control.Bind"]=n["Control.Bind"]||{}).arrayBind=function(n){return function(t){for(var r=[],e=0,o=n.length;e<o;e++)Array.prototype.push.apply(r,t(n[e]));return r}}}(),function(t){"use strict";var r=n["Control.Bind"],e=(n["Control.Applicative"],n["Control.Apply"]),o=(n["Control.Category"],n["Data.Function"]),a=(n["Data.Functor"],n["Data.Unit"],function(n,t){this.Apply0=n,this.bind=t}),i=new a(function(){return e.applyArray},r.arrayBind),u=function(n){return n.bind},c=function(n){return o.flip(u(n))};t.Bind=a,t.bind=u,t.bindFlipped=c,t.composeKleisliFlipped=function(n){return function(t){return function(r){return function(e){return c(n)(t)(r(e))}}}},t.bindArray=i}(n["Control.Bind"]=n["Control.Bind"]||{}),function(n){"use strict";n.foldrArray=function(n){return function(t){return function(r){for(var e=t,o=r.length-1;o>=0;o--)e=n(r[o])(e);return e}}},n.foldlArray=function(n){return function(t){return function(r){for(var e=t,o=r.length,a=0;a<o;a++)e=n(e)(r[a]);return e}}}}(n["Data.Foldable"]=n["Data.Foldable"]||{}),function(t){"use strict";var r=n["Control.Applicative"],e=(n["Control.Apply"],n["Control.Bind"]);n["Data.Functor"],n["Data.Unit"];t.Monad=function(n,t){this.Applicative0=n,this.Bind1=t},t.ap=function(n){return function(t){return function(o){return e.bind(n.Bind1())(t)(function(t){return e.bind(n.Bind1())(o)(function(e){return r.pure(n.Applicative0())(t(e))})})}}}}(n["Control.Monad"]=n["Control.Monad"]||{}),function(t){"use strict";n["Data.Semigroup"],n["Data.Symbol"],n["Data.Unit"],n["Data.Void"],n["Record.Unsafe"],n["Type.Data.RowList"];t.Semigroup=function(n){this.append=n},t.append=function(n){return n.append}}(n["Data.Semigroup"]=n["Data.Semigroup"]||{}),function(t){"use strict";n["Data.Boolean"],n["Data.Eq"],n["Data.EuclideanRing"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Symbol"],n["Data.Unit"],n["Record.Unsafe"],n["Type.Data.RowList"];t.Monoid=function(n,t){this.Semigroup0=n,this.mempty=t},t.mempty=function(n){return n.mempty}}(n["Data.Monoid"]=n["Data.Monoid"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],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"],n["Data.Functor.Invariant"],n["Data.Monoid"],n["Data.Ord"],n["Data.Ordering"],n["Data.Semigroup"],n["Data.Show"],n["Data.Unit"],n.Prelude;var r=function(){function n(){}return n.value=new n,n}(),e=function(){function n(n){this.value0=n}return n.create=function(t){return new n(t)},n}();t.Nothing=r,t.Just=e,t.maybe=function(n){return function(t){return function(o){if(o instanceof r)return n;if(o instanceof e)return t(o.value0);throw new Error("Failed pattern match at Data.Maybe (line 217, column 1 - line 217, column 51): "+[n.constructor.name,t.constructor.name,o.constructor.name])}}}}(n["Data.Maybe"]=n["Data.Maybe"]||{}),function(t){"use strict";var r=n["Data.Foldable"],e=(n["Control.Alt"],n["Control.Applicative"]),o=n["Control.Apply"],a=(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"]),i=(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"]),u=(n["Data.Semiring"],n["Data.Unit"]),c=(n.Prelude,function(n,t,r){this.foldMap=n,this.foldl=t,this.foldr=r}),f=function(n){return n.foldr},l=function(n){return function(t){return function(r){return f(n)(function(n){return function(e){return i.append(t.Semigroup0())(r(n))(e)}})(a.mempty(t))}}},s=new c(function(n){return l(s)(n)},r.foldlArray,r.foldrArray);t.Foldable=c,t.foldr=f,t.foldl=function(n){return n.foldl},t.foldMap=function(n){return n.foldMap},t.foldMapDefaultR=l,t.traverse_=function(n){return function(t){return function(r){return f(t)(function(t){return o.applySecond(n.Apply0())(r(t))})(e.pure(n)(u.unit))}}},t.foldableArray=s}(n["Data.Foldable"]=n["Data.Foldable"]||{}),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 r=function(){function n(n,t){this.value0=n,this.value1=t}return n.create=function(t){return function(r){return new n(t,r)}},n}();t.Tuple=r}(n["Data.Tuple"]=n["Data.Tuple"]||{}),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 r=n.Partial;t.crashWith=r.crashWith}(n.Partial=n.Partial||{}),function(t){"use strict";var r=n["Partial.Unsafe"],e=n.Partial;t.unsafeCrashWith=function(n){return r.unsafePartial(function(t){return e.crashWith(t)(n)})}}(n["Partial.Unsafe"]=n["Partial.Unsafe"]||{}),function(t){"use strict";(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}).unsafeCoerce=function(n){return n}}(),function(t){"use strict";var r=n["Unsafe.Coerce"];t.unsafeCoerce=r.unsafeCoerce}(n["Unsafe.Coerce"]=n["Unsafe.Coerce"]||{}),function(t){"use strict";n["Data.Array"],n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"];var r=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"]),a=(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"],function(n){return[n]}),i=e.flip(r.bind(r.bindArray));t.singleton=a,t.concatMap=i,t.mapMaybe=function(n){return i(function(t){return o.maybe([])(a)(n(t))})}}(n["Data.Array"]=n["Data.Array"]||{}),function(t){"use strict";n["Control.Alt"];var r=n["Control.Applicative"],e=n["Control.Apply"],o=n["Control.Bind"],a=(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 a.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(r){if(r instanceof u)return n(r.value0);if(r instanceof c)return t(r.value0);throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): "+[n.constructor.name,t.constructor.name,r.constructor.name])}}},s=new e.Apply(function(){return f},function(n){return function(t){if(n instanceof u)return new u(n.value0);if(n instanceof c)return a.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])}}),p=new o.Bind(function(){return s},l(function(n){return function(t){return new u(n)}})(function(n){return function(t){return t(n)}})),d=new r.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=p}(n["Data.Either"]=n["Data.Either"]||{}),function(n){"use strict";n.fromStringAsImpl=function(n){return function(t){return function(r){var e;e=r<11?"[0-"+(r-1).toString()+"]":11===r?"[0-9a]":"[0-9a-"+String.fromCharCode(86+r)+"]";var o=new RegExp("^[\\+\\-]?"+e+"+$","i");return function(e){if(o.test(e)){var a=parseInt(e,r);return(0|a)===a?n(a):t}return t}}}},n.pow=function(n){return function(t){return 0|Math.pow(n,t)}}}(n["Data.Int"]=n["Data.Int"]||{}),function(t){"use strict";var r=n["Data.Int"],e=(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"]),o=(n["Data.Ord"],n["Data.Ordering"],n["Data.Ring"],n["Data.Semiring"],n["Data.Show"],n.Global,n.Math,n.Prelude,r.fromStringAsImpl(e.Just.create)(e.Nothing.value)),a=o(10);t.fromString=a,t.fromStringAs=o,t.pow=r.pow}(n["Data.Int"]=n["Data.Int"]||{}),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 r=n["Data.String.Common"];n["Data.Eq"],n["Data.Ordering"],n["Data.String.Pattern"],n.Prelude;t.split=r.split,t.trim=r.trim}(n["Data.String.Common"]=n["Data.String.Common"]||{}),function(n){"use strict";n.pureE=function(n){return function(){return n}},n.bindE=function(n){return function(t){return function(){return t(n())()}}}}(n.Effect=n.Effect||{}),function(t){"use strict";var r=n.Effect,e=n["Control.Applicative"],o=n["Control.Apply"],a=n["Control.Bind"],i=n["Control.Monad"],u=n["Data.Functor"],c=(n["Data.Monoid"],n["Data.Semigroup"],n.Prelude,new i.Monad(function(){return s},function(){return f})),f=new a.Bind(function(){return l},r.bindE),l=new o.Apply(function(){return p},i.ap(c)),s=new e.Applicative(function(){return l},r.pureE),p=new u.Functor(e.liftA1(s));t.functorEffect=p,t.applyEffect=l,t.applicativeEffect=s,t.bindEffect=f,t.monadEffect=c}(n.Effect=n.Effect||{}),function(n){"use strict";var t=function(){var n={},t="Pure",r="Throw",e="Catch",o="Sync",a="Async",i="Bind",u="Bracket",c="Fork",f="Sequential",l="Map",s="Apply",p="Alt",d="Cons",D="Resume",h="Release",m="Finalizer",C="Finalized",w="Forked";function g(n,t,r,e){this.tag=n,this._1=t,this._2=r,this._3=e}function v(n){var t=function(t,r,e){return new g(n,t,r,e)};return t.tag=n,t}function y(n){return new g(t,void 0)}function A(n){try{n()}catch(t){setTimeout(function(){throw t},0)}}function E(n,t,r){try{return t(r())}catch(e){return n(e)}}function b(n,t,r){try{return t(r)()}catch(e){return r(n(e))(),y}}var S=function(){var n=1024,t=0,r=0,e=new Array(n),o=!1;function a(){var a;for(o=!0;0!==t;)t--,a=e[r],e[r]=void 0,r=(r+1)%n,a();o=!1}return{isDraining:function(){return o},enqueue:function(i){var u;t===n&&(u=o,a(),o=u),e[(r+t)%n]=i,t++,o||a()}}}();var _=0,F=1,P=2,M=3,B=4,k=5,U=6;function R(n,l,s){var p=0,w=_,v=s,y=null,T=null,N=null,L=null,x=null,q=0,O=0,W=null,H=!0;function z(s){for(var O,j,J;;)switch(O=null,j=null,J=null,w){case P:w=F,v=N(v),null===L?N=null:(N=L._1,L=L._2);break;case M:n.isLeft(v)?(w=k,y=v,v=null):null===N?w=k:(w=P,v=n.fromRight(v));break;case F:switch(v.tag){case i:N&&(L=new g(d,N,L)),N=v._2,w=F,v=v._1;break;case t:null===N?(w=k,v=n.right(v._1)):(w=P,v=v._1);break;case o:w=M,v=E(n.left,n.right,v._1);break;case a:return w=B,void(v=b(n.left,v._1,function(n){return function(){p===s&&(p++,S.enqueue(function(){p===s+1&&(w=M,v=n,z(p))}))}}));case r:w=k,y=n.left(v._1),v=null;break;case e:x=new g(d,v,null===N?x:new g(d,new g(D,N,L),x,T),T),N=null,L=null,w=F,v=v._1;break;case u:q++,x=new g(d,v,null===N?x:new g(d,new g(D,N,L),x,T),T),N=null,L=null,w=F,v=v._1;break;case c:w=M,O=R(n,l,v._2),l&&l.register(O),v._1&&O.run(),v=n.right(O);break;case f:w=F,v=I(n,l,v._1)}break;case k:if(N=null,L=null,null===x)w=U,v=T||y||v;else switch(O=x._3,J=x._1,x=x._2,J.tag){case e:T&&T!==O?w=k:y&&(w=F,v=J._2(n.fromLeft(y)),y=null);break;case D:T&&T!==O||y?w=k:(N=J._1,L=J._2,w=P,v=n.fromRight(v));break;case u:q--,null===y&&(j=n.fromRight(v),x=new g(d,new g(h,J._2,j),x,O),(T===O||q>0)&&(w=F,v=J._3(j)));break;case h:q++,x=new g(d,new g(C,v,y),x,T),w=F,v=T&&T!==O?J._1.killed(n.fromLeft(T))(J._2):y?J._1.failed(n.fromLeft(y))(J._2):J._1.completed(n.fromRight(v))(J._2),y=null;break;case m:q++,x=new g(d,new g(C,v,y),x,T),w=F,v=J._1;break;case C:q--,w=k,v=J._1,y=J._2}break;case U:for(var K in W)W.hasOwnProperty(K)&&(H=H&&W[K].rethrow,A(W[K].handler(v)));return W=null,void(T&&y?setTimeout(function(){throw n.fromLeft(y)},0):n.isLeft(v)&&H&&setTimeout(function(){if(H)throw n.fromLeft(v)},0));case _:w=F;break;case B:return}}function j(n){return function(){if(w===U)return H=H&&n.rethrow,n.handler(v)(),function(){};var t=O++;return(W=W||{})[t]=n,function(){null!==W&&delete W[t]}}}return{kill:function(t,r){return function(){if(w===U)return r(n.right(void 0))(),function(){};var e=j({rethrow:!1,handler:function(){return r(n.right(void 0))}})();switch(w){case _:T=n.left(t),w=U,v=T,z(p);break;case B:null===T&&(T=n.left(t)),0===q&&(w===B&&(x=new g(d,new g(m,v(t)),x,T)),w=k,v=null,y=null,z(++p));break;default:null===T&&(T=n.left(t)),0===q&&(w=k,v=null,y=null)}return e}},join:function(n){return function(){var t=j({rethrow:!1,handler:n})();return w===_&&z(p),t}},onComplete:j,isSuspended:function(){return w===_},run:function(){w===_&&(S.isDraining()?z(p):S.enqueue(function(){z(p)}))}}}function T(t,r,e,o){var i=0,u={},c=0,f={},D=new Error("[ParAff] Early exit"),h=null,m=n;function C(r,e,o){var a,i,c=e,f=null,D=null,h=0,m={};n:for(;;)switch(a=null,c.tag){case w:if(c._3===n&&(a=u[c._1],m[h++]=a.kill(r,function(n){return function(){0===--h&&o(n)()}})),null===f)break n;c=f._2,null===D?f=null:(f=D._1,D=D._2);break;case l:c=c._2;break;case s:case p:f&&(D=new g(d,f,D)),f=c,c=c._1}if(0===h)o(t.right(void 0))();else for(i=0,a=h;i<a;i++)m[i]=m[i]();return m}function v(r){return function(e){return function(){delete u[r._1],r._3=e,function r(e,a,i){var u,d,m,w,g,v;for(t.isLeft(e)?(u=e,d=null):(d=e,u=null);;){if(m=null,w=null,g=null,v=null,null!==h)return;if(null===a)return void o(u||d)();if(a._3!==n)return;switch(a.tag){case l:null===u?(a._3=t.right(a._1(t.fromRight(d))),d=a._3):a._3=u;break;case s:if(m=a._1._3,w=a._2._3,u){if(a._3=u,g=!0,v=c++,f[v]=C(D,u===m?a._2:a._1,function(){return function(){delete f[v],g?g=!1:null===i?r(u,null,null):r(u,i._1,i._2)}}),g)return void(g=!1)}else{if(m===n||w===n)return;d=t.right(t.fromRight(m)(t.fromRight(w))),a._3=d}break;case p:if(m=a._1._3,w=a._2._3,m===n&&t.isLeft(w)||w===n&&t.isLeft(m))return;if(m!==n&&t.isLeft(m)&&w!==n&&t.isLeft(w))u=d===m?w:m,d=null,a._3=u;else if(a._3=d,g=!0,v=c++,f[v]=C(D,d===m?a._2:a._1,function(){return function(){delete f[v],g?g=!1:null===i?r(d,null,null):r(d,i._1,i._2)}}),g)return void(g=!1)}null===i?a=null:(a=i._1,i=i._2)}}(e,r._2._1,r._2._2)}}}return function(){var o,a,c=F,f=e,D=null,h=null;n:for(;;)switch(o=null,a=null,c){case F:switch(f.tag){case l:D&&(h=new g(d,D,h)),D=new g(l,f._1,n,n),f=f._2;break;case s:D&&(h=new g(d,D,h)),D=new g(s,n,f._2,n),f=f._1;break;case p:D&&(h=new g(d,D,h)),D=new g(p,n,f._2,n),f=f._1;break;default:a=i++,c=k,o=f,f=new g(w,a,new g(d,D,h),n),(o=R(t,r,o)).onComplete({rethrow:!1,handler:v(f)})(),u[a]=o,r&&r.register(o)}break;case k:if(null===D)break n;D._1===n?(D._1=f,c=F,f=D._2,D._2=n):(D._2=f,f=D,null===h?D=null:(D=h._1,h=h._2))}for(m=f,a=0;a<i;a++)u[a].run()}(),function(n){return new g(a,function(r){return function(){return function(n,r){var e;for(var o in h=t.left(n),f)if(f.hasOwnProperty(o))for(o in e=f[o])e.hasOwnProperty(o)&&e[o]();f=null;var i=C(n,m,r);return function(n){return new g(a,function(n){return function(){for(var n in i)i.hasOwnProperty(n)&&i[n]();return y}})}}(n,r)}})}}function I(n,t,r){return new g(a,function(e){return function(){return T(n,t,r,e)}})}return g.EMPTY=n,g.Pure=v(t),g.Throw=v(r),g.Catch=v(e),g.Sync=v(o),g.Async=v(a),g.Bind=v(i),g.Bracket=v(u),g.Fork=v(c),g.Seq=v(f),g.ParMap=v(l),g.ParApply=v(s),g.ParAlt=v(p),g.Fiber=R,g.Supervisor=function(n){var t={},r=0,e=0;return{register:function(n){var o=r++;n.onComplete({rethrow:!0,handler:function(n){return function(){e--,delete t[o]}}}),t[o]=n,e++},isEmpty:function(){return 0===e},killAll:function(a,i){return function(){var u=0,c={};function f(r){c[r]=t[r].kill(a,function(t){return function(){delete c[r],u--,n.isLeft(t)&&n.fromLeft(t)&&setTimeout(function(){throw n.fromLeft(t)},0),0===u&&i()}})()}for(var l in t)t.hasOwnProperty(l)&&(u++,f(l));return t={},r=0,e=0,function(n){return new g(o,function(){for(var n in c)c.hasOwnProperty(n)&&c[n]()})}}}}},g.Scheduler=S,g.nonCanceler=y,g}();n._pure=t.Pure,n._map=function(n){return function(r){return r.tag===t.Pure.tag?t.Pure(n(r._1)):t.Bind(r,function(r){return t.Pure(n(r))})}},n._bind=function(n){return function(r){return t.Bind(n,r)}},n._liftEffect=t.Sync,n._parAffMap=function(n){return function(r){return t.ParMap(n,r)}},n._parAffApply=function(n){return function(r){return t.ParApply(n,r)}},n.makeAff=t.Async,n._makeFiber=function(n,r){return function(){return t.Fiber(n,null,r)}},n._sequential=t.Seq}(n["Effect.Aff"]=n["Effect.Aff"]||{}),function(t){"use strict";n["Control.Category"],n["Control.Monad"],n.Effect;t.liftEffect=function(n){return n.liftEffect},t.MonadEffect=function(n,t){this.Monad0=n,this.liftEffect=t}}(n["Effect.Class"]=n["Effect.Class"]||{}),function(n){"use strict";n.new=function(n){return function(){return{value:n}}},n.read=function(n){return function(){return n.value}},n.write=function(n){return function(t){return function(){return t.value=n,{}}}}}(n["Effect.Ref"]=n["Effect.Ref"]||{}),function(t){"use strict";var r=n["Effect.Ref"];n["Data.Function"],n["Data.Functor"],n.Effect,n.Prelude;t.new=r.new,t.read=r.read,t.write=r.write}(n["Effect.Ref"]=n["Effect.Ref"]||{}),function(t){"use strict";n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"],n["Control.Apply"],n["Control.Bind"],n["Control.Monad.Cont.Trans"],n["Control.Monad.Except.Trans"],n["Control.Monad.Maybe.Trans"],n["Control.Monad.Reader.Trans"],n["Control.Monad.Writer.Trans"],n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Either"],n["Data.Function"],n["Data.Functor"],n["Data.Functor.Compose"],n["Data.Maybe"],n["Data.Newtype"],n["Data.Unit"],n["Effect.Class"],n["Effect.Ref"],n.Prelude;t.parallel=function(n){return n.parallel},t.sequential=function(n){return n.sequential},t.Parallel=function(n,t,r,e){this.Applicative1=n,this.Monad0=t,this.parallel=r,this.sequential=e}}(n["Control.Parallel.Class"]=n["Control.Parallel.Class"]||{}),function(t){"use strict";n["Control.Alternative"],n["Control.Apply"];var r=n["Control.Category"],e=n["Control.Parallel.Class"],o=(n["Control.Semigroupoid"],n["Data.Foldable"]),a=(n["Data.Traversable"],n.Prelude,function(n){return function(t){return function(r){return function(a){return e.sequential(n)(o.traverse_(n.Applicative1())(t)(function(t){return e.parallel(n)(r(t))})(a))}}}});t.parTraverse_=a,t.parSequence_=function(n){return function(t){return a(n)(t)(r.identity(r.categoryFn))}}}(n["Control.Parallel"]=n["Control.Parallel"]||{}),function(n){"use strict";n.error=function(n){return new Error(n)},n.throwException=function(n){return function(){throw n}}}(n["Effect.Exception"]=n["Effect.Exception"]||{}),function(t){"use strict";var r=n["Effect.Exception"];n["Control.Applicative"],n["Control.Semigroupoid"],n["Data.Either"],n["Data.Functor"],n["Data.Maybe"],n["Data.Show"],n.Effect,n.Prelude;t.throw=function(n){return r.throwException(r.error(n))}}(n["Effect.Exception"]=n["Effect.Exception"]||{}),function(t){"use strict";var r=n["Effect.Aff"],e=(n["Control.Alt"],n["Control.Alternative"],n["Control.Applicative"]),o=n["Control.Apply"],a=n["Control.Bind"],i=(n["Control.Lazy"],n["Control.Monad"]),u=(n["Control.Monad.Error.Class"],n["Control.Monad.Rec.Class"],n["Control.Parallel"]),c=n["Control.Parallel.Class"],f=(n["Control.Plus"],n["Control.Semigroupoid"],n["Data.Either"]),l=n["Data.Foldable"],s=n["Data.Function"],p=(n["Data.Function.Uncurried"],n["Data.Functor"]),d=n["Data.Monoid"],D=(n["Data.Newtype"],n["Data.Semigroup"]),h=(n["Data.Time.Duration"],n["Data.Unit"]),m=n.Effect,C=n["Effect.Class"],w=(n["Effect.Exception"],n["Effect.Unsafe"],n["Partial.Unsafe"]),g=(n.Prelude,n["Unsafe.Coerce"]),v=new p.Functor(r._parAffMap),y=new p.Functor(r._map),A={isLeft:function(n){if(n instanceof f.Left)return!0;if(n instanceof f.Right)return!1;throw new Error("Failed pattern match at Effect.Aff (line 390, column 12 - line 392, column 20): "+[n.constructor.name])},fromLeft:function(n){if(n instanceof f.Left)return n.value0;if(n instanceof f.Right)return w.unsafeCrashWith("unsafeFromLeft: Right");throw new Error("Failed pattern match at Effect.Aff (line 395, column 20 - line 399, column 3): "+[n.constructor.name])},fromRight:function(n){if(n instanceof f.Right)return n.value0;if(n instanceof f.Left)return w.unsafeCrashWith("unsafeFromRight: Left");throw new Error("Failed pattern match at Effect.Aff (line 400, column 21 - line 402, column 31): "+[n.constructor.name])},left:f.Left.create,right:f.Right.create},E=function(n){return function(){var t=function(n){return r._makeFiber(A,n)}(n)();return t.run(),t}},b=new o.Apply(function(){return v},r._parAffApply),S=new i.Monad(function(){return P},function(){return _}),_=new a.Bind(function(){return F},r._bind),F=new o.Apply(function(){return y},i.ap(S)),P=new e.Applicative(function(){return F},r._pure),M=new C.MonadEffect(function(){return S},r._liftEffect),B=new c.Parallel(function(){return k},function(){return S},g.unsafeCoerce,r._sequential),k=new e.Applicative(function(){return b},function(n){return c.parallel(B)(e.pure(P)(n))}),U=new D.Semigroup(function(n){return function(t){return function(r){return u.parSequence_(B)(l.foldableArray)([n(r),t(r)])}}}),R=s.const(e.pure(P)(h.unit)),T=new d.Monoid(function(){return U},R);t.launchAff=E,t.launchAff_=function(n){return p.void(m.functorEffect)(E(n))},t.nonCanceler=R,t.functorAff=y,t.applyAff=F,t.applicativeAff=P,t.bindAff=_,t.monadAff=S,t.monadEffectAff=M,t.functorParAff=v,t.applyParAff=b,t.applicativeParAff=k,t.parallelAff=B,t.semigroupCanceler=U,t.monoidCanceler=T,t.makeAff=r.makeAff}(n["Effect.Aff"]=n["Effect.Aff"]||{}),function(t){"use strict";n["Node.Encoding"];var r=n["Data.Show"],e=(n.Prelude,function(){function n(){}return n.value=new n,n}()),o=function(){function n(){}return n.value=new n,n}(),a=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 r.Show(function(n){if(n instanceof e)return"ASCII";if(n instanceof o)return"UTF8";if(n instanceof a)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=e,t.UTF8=o,t.UTF16LE=a,t.UCS2=i,t.Base64=u,t.Latin1=c,t.Binary=f,t.Hex=l,t.encodingToNode=function(n){if(n instanceof e)return"ascii";if(n instanceof o)return"utf8";if(n instanceof a)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 31, column 1 - line 31, column 37): "+[n.constructor.name])},t.showEncoding=s}(n["Node.Encoding"]=n["Node.Encoding"]||{}),function(t){"use strict";(n["Node.Process"]=n["Node.Process"]||{}).process=process}(),function(n){"use strict";n.readChunkImpl=function(n){return function(t){return function(r){if(r instanceof Buffer)return t(r);if("string"==typeof r)return n(r);throw new Error("Node.Stream.readChunkImpl: Unrecognised chunk type; expected String or Buffer, got: "+r)}}},n.onDataEitherImpl=function(n){return function(t){return function(r){return function(){t.on("data",function(t){r(n(t))()})}}}},n.onEnd=function(n){return function(t){return function(){n.on("end",t)}}},n.write=function(n){return function(t){return function(r){return function(){return n.write(t,null,r)}}}},n.writeStringImpl=function(n){return function(t){return function(r){return function(e){return function(){return n.write(r,t,e)}}}}}}(n["Node.Stream"]=n["Node.Stream"]||{}),function(t){"use strict";(n["Node.Buffer"]=n["Node.Buffer"]||{}).toStringImpl=function(n){return function(t){return function(){return t.toString(n)}}}}(),function(t){"use strict";var r=n["Node.Buffer"],e=(n["Control.Semigroupoid"],n["Data.ArrayBuffer.Types"],n["Data.Maybe"],n["Data.Show"],n.Effect,n["Node.Encoding"]);n.Prelude;t.toString=function(n){return r.toStringImpl(e.encodingToNode(n))}}(n["Node.Buffer"]=n["Node.Buffer"]||{}),function(t){"use strict";var r=n["Node.Stream"],e=n["Control.Applicative"],o=n["Control.Bind"],a=n["Data.Either"],i=(n["Data.Functor"],n["Data.Maybe"],n["Data.Show"]),u=n.Effect,c=n["Effect.Exception"],f=n["Node.Buffer"],l=n["Node.Encoding"],s=(n.Prelude,r.readChunkImpl(a.Left.create)(a.Right.create)),p=function(n){return function(t){return r.onDataEitherImpl(s)(n)(t)}},d=function(n){return function(t){return p(n)(o.composeKleisliFlipped(u.bindEffect)(t)(function(n){if(n instanceof a.Left)return c.throw("Stream encoding should not be set");if(n instanceof a.Right)return e.pure(u.applicativeEffect)(n.value0);throw new Error("Failed pattern match at Node.Stream (line 94, column 5 - line 98, column 17): "+[n.constructor.name])}))}};t.onData=d,t.onDataString=function(n){return function(t){return function(r){return d(n)(o.composeKleisliFlipped(u.bindEffect)(r)(f.toString(t)))}}},t.onDataEither=p,t.writeString=function(n){return function(t){return r.writeStringImpl(n)(i.show(l.showEncoding)(t))}},t.onEnd=r.onEnd}(n["Node.Stream"]=n["Node.Stream"]||{}),function(t){"use strict";var r=n["Node.Process"],e=(n["Data.Functor"],n["Data.Maybe"],n["Data.Posix"],n["Data.Posix.Signal"],n.Effect,n["Foreign.Object"],n["Node.Platform"],n["Node.Stream"],n.Prelude,n["Unsafe.Coerce"],r.process.stdout),o=r.process.stdin;t.stdin=o,t.stdout=e}(n["Node.Process"]=n["Node.Process"]||{}),function(t){"use strict";var r=n["Control.Applicative"],e=n["Control.Bind"],o=n["Control.Category"],a=n["Data.Array"],i=n["Data.Either"],u=n["Data.Functor"],c=n["Data.Int"],f=n["Data.Maybe"],l=n["Data.Monoid"],s=(n["Data.Semigroup"],n["Data.Semiring"],n["Data.Show"]),p=(n["Data.String"],n["Data.String.Common"]),d=(n["Data.String.Pattern"],n["Data.Tuple"]),D=n["Data.Unit"],h=n.Effect,m=n["Effect.Aff"],C=n["Effect.Class"],w=n["Effect.Ref"],g=n["Node.Encoding"],v=n["Node.Process"],y=n["Node.Stream"],A=n["Partial.Unsafe"],E=(n.Prelude,m.makeAff(function(n){return function(){var t=w.new("")();return y.onDataString(v.stdin)(g.UTF8.value)(function(n){return function(){var r=w.read(t)();return w.write(r+n)(t)()}})(),y.onEnd(v.stdin)(function(){var e=w.read(t)();return n(r.pure(i.applicativeEither)(e))()})(),l.mempty(m.monoidCanceler)}})),b=function(n){var t=a.mapMaybe(c.fromString)(function(n){return p.split(" ")(n)}(n));return 2===t.length?new f.Just(new d.Tuple(t[0],t[1])):f.Nothing.value},S=function(n){return i.either(function(n){return A.unsafeCrashWith(n)})(o.identity(o.categoryFn))(e.bind(i.bindEither)(i.note("d n")(b(p.trim(n))))(function(n){return r.pure(i.applicativeEither)(s.show(s.showInt)((t=n.value0,function(n){return n*c.pow(100)(t)|0})(n.value1))+"\n");var t}))},_=m.launchAff_(e.bind(m.bindAff)(E)(function(n){return e.bind(m.bindAff)(r.pure(m.applicativeAff)(S(n)))(function(n){return C.liftEffect(m.monadEffectAff)((t=n,u.void(h.functorEffect)(y.writeString(v.stdout)(g.UTF8.value)(t)(r.pure(h.applicativeEffect)(D.unit)))));var t})}));t.main=_,t.solve=S}(n.ABC100B=n.ABC100B||{}),n.ABC100B.main();
},{}]},{},["Focm"], null)