#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
int main(){
ifstream in("C:\\Users\\lenovo\\Desktop\\input.txt");
ofstream out("C:\\Users\\lenovo\\Desktop\\output.txt");
for(string s; getline(in,s);){
int x;
for (istringstream sin(s);sin >> x;){
out << x << endl;
}
}
return 0;
}