#include <iostream> using namespace std; int main() { string s;cin>>s; int i;cin>>i; cout<<s.substr(s.size() - i)<<endl; } // 64 位输出请用 printf("%lld")