#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
cout << "test1" << endl;
string cmd = "./test2";
int status = system(cmd.c_str());
cout << WEXITSTATUS(status) << endl;
return 0;
}