import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader fileReader = new BufferedReader(new InputStreamReader(System.in));
String f1 = fileReader.readLine();
String f2 = fileReader.readLine();
fileReader.close();
BufferedReader reader = new BufferedReader(new FileReader(f1));
BufferedWriter writer = new BufferedWriter(new FileWriter(f2));
while (reader.ready()) {
String[] numLineArr = reader.readLine().split(" ");
for (String num : numLineArr) {
long numbers = Long.parseLong(num);
writer.write(numbers + " ");
}
}
reader.close();
writer.close();
}
}