import java.util.Scanner;class Main{public static void main(String[] args){Scanner s=new Scanner(System.in);int i=s.nextInt();String str=s.next();if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");}}} import java.util.Scanner; Scanner java.util class Main{public static void main(String[] args){Scanner s=new Scanner(System.in);int i=s.nextInt();String str=s.next();if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");}}} Main public static void main(String[] args){Scanner s=new Scanner(System.in);int i=s.nextInt();String str=s.next();if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");}} main {Scanner s=new Scanner(System.in);int i=s.nextInt();String str=s.next();if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");}} Scanner s=new Scanner(System.in); s new Scanner(System.in) int i=s.nextInt(); i s.nextInt() s.nextInt s String str=s.next(); str s.next() s.next s if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");} str.length()<=i str.length() str.length str i {System.out.println(str);} System.out.println(str) System.out.println System.out System System.out str {System.out.println(str.substring(0,i)+"...");} System.out.println(str.substring(0,i)+"...") System.out.println System.out System System.out str.substring(0,i)+"..." str.substring(0,i) str.substring str 0 i "..." String[] args args
import java.util.Scanner;class Main{public static void main(String[] args){Scanner s=new Scanner(System.in);int i=s.nextInt();String str=s.next();if(str.length()<=i){System.out.println(str);}else{System.out.println(str.substring(0,i)+"...");}}}
