#include <fstream>
#include <iostream>
using namespace std;
int main(){
fstream file("d:/test.txt", ios::out);
file << "orange" << endl << "Blue" << endl << "Red" << endl;
file.close();
fstream file2("d:/test.txt", ios::in);
string str;
file2 >> str;
cout << str << endl;
while (!file2.eof()){
int ch = getchar();
if (ch == '1'){
file2 >> str;
cout << str << endl;
}
}
file2.close();
return 0;
}