#include using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define rng(i,c,n) for(int i=c;i #define _4c5UlRw ios::sync_with_stdio(0),cin.tie(0) typedef long long ll; typedef vector vi; typedef pair pii; void print(){cout<<'\n';} template void print(const h&v,const t&...u){cout<>a>>b; int ho=0; if(b<0){ b*=-1; ho=1; } if(a<0){ ho^=1; a*=-1; } print(ho?b-(a%b):a%b); } signed main(){ _4c5UlRw; slv(); }