#include <iostream> #include <math.h> using namespace std; int main() { int T; float x, y; cin >> T; while (T--) { cin >> x >> y; int answer = y * ceil(x/y); cout << answer << endl; } }