#include <bits/stdc++.h>
// #include <atcoder/all>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vii = vector<vector<int>>;
using vl = vector<long long>;
using vll = vector<vector<long long>>;
#define _GLIBCXX_DEBUG
#define rep(i, s, n) for (int i = (int)s; i < (int)n; i++)
#define repr(i, n, s) for (int i = (int)n; (int)s < i; i--)
#define len(a) (int)a.size()
#define all(a) a.begin(), a.end()
 
const int INF32 = 1 << 30;
const long long INF64 = 1LL << 60;
const double PI = acos(-1);
 
/* 1次元ベクトルをスペースでつなぎ、改行をつけて出力 
   vi, vl, list<int>, list<ll>に対応  */
template<class T> string print_elements(T a) {
    string str = "";
    for (auto itr = a.begin(); itr != a.end(); ++itr) {
        str += to_string(*itr) + ' ';
    }
    str.pop_back();  // 最後の空白を削除
    str += '\n';
    return str;
}
 
int main() {
    int t;
    ll N;
    cin >> t >> N;
 
    double tax = (100.0 + t) / 100.0;
 
    double d = ceil(1.0 * N * 100.0 / (1.0 * t));
 
    ll ans = (ll)(d * (100.0 + t) / 100) - 1LL;
 
    cout << ans << endl;
    
}
#include <bits/stdc++.h> 
using namespace std; 
  
#define fo(i, n) for (int i = 0; i < n; i++) 
typedef long long ll; 
typedef long double ld; 
#define pb push_back 
#define mp make_pair 
#define F first
#define S second 
#define all(x) (x).begin(), (x).end() 
#define clr(x) memset(x, 0, sizeof(x)) 
#define sortall(x) sort(all(x)) 
typedef pair<int, int> pi; 
typedef pair<ll, ll> pl; 
typedef vector<int> vi; 
typedef vector<ll> vl; 
typedef vector<pi> vpi; 
  
int main() 
{ 
    ios_base::sync_with_stdio(0); 
    cin.tie(0); 
    cout.tie(0); 
    int n;
    cin>>n;
    ll a[n];
    ll ma=0LL;
    fo(i,n){
        ll x;
        cin>>x;
        ma=max(ma,x);
        a[i]=ma;
    }
    ll b[n];
    fo(i,n){
        cin>>b[i];
    }
    ma=0LL;
    ll prefb[n];
    for(int i=n-1;i>=0;i--){
        ma=max(ma,b[i]);
        prefb[i]=ma;
    }
    ma=0;
    for(int i=0;i<n;i++){
        ma=max(a[i]*b[i],ma);
        cout<<ma<<"\n";
    }
    return 0; 
} 