/*
 * 时间: 2021-05-27 21:28
 * 思路: 
 */
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String str = sc.nextLine();
            int len = sc.nextInt();
            sc.nextLine();
            System.out.println(str.substring(0, len));
        }
    }
} 


京公网安备 11010502036488号