import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
System.out.println(fun2(s));
}
public static String fun2(String s)
{
return s.replaceAll("\\s+"," ");
}
}