#include <iostream>
using namespace std;
int main() {
int gifts, boxes;
cin >> gifts >> boxes;
if(gifts % boxes != 0) {
cout << "imposibil";
}
if(gifts % boxes == 0) {
cout << "posibil";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgZ2lmdHMsIGJveGVzOwogICAgY2luID4+IGdpZnRzID4+IGJveGVzOwogICAgaWYoZ2lmdHMgJSBib3hlcyAhPSAwKSB7CiAgICAgICAgY291dCA8PCAiaW1wb3NpYmlsIjsKICAgIH0KICAgIGlmKGdpZnRzICUgYm94ZXMgPT0gMCkgewogICAgICAgIGNvdXQgPDwgInBvc2liaWwiOwogICAgfQogICAgcmV0dXJuIDA7Cn0=