long a,b,s,i,q;main(t){for(scanf("%d%d%d",&a,&b,&t);i