#include "bits/stdc++.h" #define REP(i,n) for(int i=0;i> n >> m; put(n%m); return 0; }