String #3
View as PDF
Submit solution
Points:
100.00 (partial)
Time limit:
1.0s
Memory limit:
102M
Input:
stdin
Output:
stdout
Author:
Problem type
Nhập một xâu ~S~ và một số nguyên dương ~M~. Hãy in ra từ thứ ~M~ của xâu đấy.
Input
- Dòng đầu tiên chứa xâu ~S (1 <= len(|S|)<= 10^5)~.
- Dòng thứ hai chứa số nguyên dương ~M (M<=~ số từ của S).
Output
- In ra từ thứ $M$.
Example
Input
lqdoj is the best
4
Output
best
Comments