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

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back
#define int long long

template <class T>
bool chmax(T &a, T b) {
    if (a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, T b) {
    if (a > b) {
        a = b;
        return 1;
    }
    return 0;
}

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vvi;

const int inf = 1e9;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};

signed main() {
    double a,b;
    cin >> a >> b;

    if(a==b){
        cout << a << endl;
    }else {
        cout << 3-a-b << endl;
    }

    return 0;
}

#include <bits/stdc++.h>

#define x first
#define y second 

using namespace std;

typedef pair<int, int> PII;
typedef pair<double, double> PDD;
typedef long long LL;
typedef unsigned long long ULL;

int main()
{   
    int a, b;
    cin >> a >> b;
    cout << 1.0 * (a - b) / a * 100 << endl;
    return 0;
}