#include <bits/stdc++.h>
using namespace std;

int main() {
  double A,B;
  double res;
  cin>>A>>B;
  res=B/A;

  res=1-res;

  res*=100;
  
  cout <<res<< endl;
}



#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using ull = unsigned long long;
using P = pair<int, int>;
const int INF = 1 << 30;
const long long LINF = 1LL << 60;
const long long MOD = 1000000007LL;

int main()
{
    string n;
    int k;
    cin >> n >> k;
    for (int i = 0; i < k; ++i)
    {
        string s = n;
        sort(s.begin(), s.end());
        reverse(s.begin(), s.end());
        ll g1 = stoll(s);
        reverse(s.begin(), s.end());
        ll g2 = stoll(s);
        ll g3 = g1 - g2;
        n = to_string(g3);
    }
    cout << n << endl;
    return 0;
}
