PROGRAMMING:Copy n characters
Copy the first n characters in a string to a character array. The value of n is less than the actual length of the string. Strcpy function is not allowed.
###Input format:
In the first line, enter a string no more than 20 in length and end with carriage return. In the second line, enter an integer n.
###Output format:
Output the string that meets the condition on one line.
###Input example:
```in
asdfghj
three
```
###Output example:
```out
asd
```
answer:If there is no answer, please comment
###Input format:
In the first line, enter a string no more than 20 in length and end with carriage return. In the second line, enter an integer n.
###Output format:
Output the string that meets the condition on one line.
###Input example:
```in
asdfghj
three
```
###Output example:
```out
asd
```
answer:If there is no answer, please comment