B 学打字
题目描述
$lxg$要教你学打字。
$lxg$给了你一个由小写字母组成,且长度不超过$100$的字符串$S$,但是你很懒,于是你决定如果$S$的长度不超过$K$,就把它原样输出,如果超过就将第$K$个字符之后的字符用省略号代替,然后输出。
输入格式
第一行一个正整数$K$。
第二行一个字符串$S$。
输出格式
一行一个字符串表示你的答案。
样例数据
input
7
nikoandsolstice
output
nikoand...
input
40
ferelibenterhominesidquodvoluntcredunt
output
ferelibenterhominesidquodvoluntcredunt
数据规模与约定
$1\leq K\leq 100$
时间限制:$2 \text {s}$
空间限制:$1024 \text {MB}$