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

int main()
{
    int numa, numb;
    cin >> numa >> numb;
    cout << numa* 2 + 100 - numb;
    return 0;
}
#include <iostream>
#include<bits/stdc++.h>
#define pb(x) push_back(x)
#define ll long long 
#define fr(i, n) for(int i=0; i<n; i++)
#define fr1(i, a, b) for(int i=a; i<=b; i++)
#define fr2(i, a, b) for(int i=a; i>=b; i--)
#define srt(a) sort(a.begin(), a.end())
#define frit(it, m) for(auto it=m.begin(); it!=m.end(); it++)
#define fritr(it, m) for(auto it=m.rbegin(); it!=m.rend(); it++)
#define all(c) c.begin(), c.end()
#define vi vector<int>
#define vvi vector<vector<int>>
#define vl vector<long>
#define vll vector<long long>
#define MAX(a,b) (a>=b)?a:b
#define MIN(a,b) (a<=b)?a:b

using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int a, b;
    cin>>a>>b;
    cout<<(2*a + 100)-b;
	return 0;
}
