#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; while(k>0){ int g=n%10; if(g>0){ n-=1; }else if(g==0){ n/=10; } k--; } cout<<n; return 0; }
Using your lizikid universal account