#include using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) template bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } void solve(); int main() { cin.tie(nullptr)->sync_with_stdio(false); cout << fixed << setprecision(20); int t = 1; //cin >> t; while (t--) { solve(); } } int A,B; void solve() { cin>>A>>B; for(int q=-1000;q<=1000;++q){ int r=A-B*q; if(0<=r&&r