/*
* Copyright (c) 1999-2002, Xiaoping Jia.
* All Rights Reserved.
*/
import java.io.*;
import java.util.*;
/**
* This program breaks the input text into words.
*/
public class Words {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try {
String line, word;
String delim = " \t\n.,:;?!-/()[]\"\'"; // spaces and punctuations
while((line = in.readLine()) != null) {
StringTokenizer st = new StringTokenizer(line, delim);
while(st.hasMoreTokens()) {
System.out.println(st.nextToken());
}
}
} catch(IOException e) {}
}
}