module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){t(1)(t(2).readFileSync("/dev/stdin","UTF-8"))},function(e,r){e.exports=function(e){for(var r=e.split("\n"),t=r[0].split(" "),n=Number(t[0]),o=Number(t[1]),f=[],u=[],a=0;a<n;a++){var i=r[a+1].split(" "),l=Number(i[0]),p=Number(i[1]);f.push(l),u.push(p)}for(var s=9999999,c=[],d=0;d<n;d++)c.push(0);for(var v=[{depth:0,flags:c}];v.length>0;){var b=v.shift();if(b.depth<n){var g=b.flags.concat();g[b.depth]=1;var h={depth:b.depth+1,flags:g};v.push(h);var y=b.flags.concat(),m={depth:b.depth+1,flags:y};v.push(m)}if(b.depth==n){for(var x=0,j=0,O=0;O<n;O++)1==b.flags[O]&&(j+=100*(O+1)*f[O]*b.flags[O],j+=u[O],x+=f[O]);if(j<o)for(var S=n-1;S>=0;S--)if(1!=b.flags[S]){for(var _=0;_<f[S]&&(x+=1,!((j+=100*(S+1))>=o));_++);if(j>=o)break}x<s&&(s=x)}}console.log(s)}},function(e,r){e.exports=require("fs")}]);