题目
我的题解
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str = bf.readLine();
Integer num = Integer.parseInt(bf.readLine());
bf.close();
System.out.println(str.substring(0, num));
}
}