#include #include using namespace std; using ll = long long; #define rep(i,n) for(ll i=0;i; using vvll = vector; using vvvll = vector; using vvvvll = vector; using vb = vector; using vvb = vector; using vvvb = vector; using vvvvb = vector; bool DEB = 0; ll arithsum(ll a,ll b,ll d=1){ ll len=(b-a+1); return (a+b)*len/2; } void solve(){ ll D,A,B; cin>>D>>A>>B; if(A==0&&B==0){ cout<<0<>T; rep(t,T)solve(); }