#include using namespace std; int main(){ long double p,q; cin>>p>>q; long double l = 1; long double r = 1e18; int qq = 1000; cout<