#include using namespace std; typedef long long LL; int main() { LL a,b; cin>>a>>b; if(a>b){ cout<<(2000000000ll-b-1)<