#include #define REP(i,n) for(int i=0,i##_len=(n);i>P>>Q>>A; if(P0){ cout<<(int)1e9<0){ cout<<(int)1e9<