#include <iostream>
#include <fstream>
#include <string>
using namespace std;
main()
{
ifstream infile ("wangs_input.txt");
string wangs_name;
string wangs_id;
int wangs_num;
loop: while (infile >> wangs_name)
{
infile >> wangs_id >> wangs_num;
cout << wangs_name <<" "<< wangs_id <<" "<< wangs_num <<endl;
if (wangs_name=="value")
{
cout<<"welcome back...\n";
goto loop; // that means ifstream can remember the stats...
}
}
return 0;
}