/* author : BHUPATHI07 */
#include<bits/stdc++.h>
using namespace std;

int main()
{
    int x , y ;
    cin>> x >>y;
    if(x==y)
        cout<<x<<"\n";
    else
        cout<<abs(3-(x+y))<<"\n";
}

#include <iostream>
#include <iomanip>
using namespace std;

int main(){
double a, b;
cin >> a >> b;
b=100*(a-b)/a;
cout << fixed << setprecision(12) << b;
}