#include
#include
using namespace std;
int main(){
ifstream cin;
cin.open("data.txt");
int n;
cin >> n;
int d = 1, cinn;
bool b;
for (int i = 0; i < n; ++i)
{
cin >> cinn;
if (cinn < 0)
{
d *= cinn;
}
}
if (d > 0)
{
b = true;
}
else
{
b = false;
}
cout << "d = " << d << ", bool = " << b << endl;<br> return 0;
}