#include #include using namespace std; int main() { long a, b; cin >> a >> b; while ((b -= a)>= 0) {} cout << b + a; }