use std::io::{self, *}; fn main() { let stdin = io::stdin(); let str = stdin.lock().lines().next().unwrap().unwrap(); let len = stdin.lock().lines().next().unwrap().unwrap(); let new_len: usize = len.parse().unwrap(); println!("{}", &str[0..new_len]); }