#include <bits/stdc++.h> using namespace std; int main(){int n,k;cin>>n>>k;cout<<k-n%k;return 0;}
注意防抄袭哟