#include <bits/stdc++.h>

using namespace std;

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

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=(a);i<=(b);++i)
#define per(i,a,b) for(int i=(a);i>=(b);--i)
using namespace std;
int n,m;
int main(){
    scanf("%d%d",&n,&m);
    printf("%d",2*n+100-m);
    return 0;
}