#include <iostream>
#include <algorithm>
using namespace std;
template< typename T >
bool negative( T x )
{
return x < 0 ;
}
int main() {
int size;
cin >> size;
vector<double> array( size );
generate( begin( array ),
end ( array ),
[]()
{
int x;
cin >> x;
return x;
} );
double product = 1.0;
for_each( begin( array ),
end ( array ),
[&product]( auto x )
{
if( negative( x ) )
{
product *= x;
}
} );
cout << product << " " << count_if( begin( array ),
end ( array ),
negative<double>
);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGU8IHR5cGVuYW1lIFQgPgpib29sIG5lZ2F0aXZlKCBUIHggKQp7CglyZXR1cm4geCA8IDAgOwp9CgppbnQgbWFpbigpIHsKICAgIGludCBzaXplOwogICAgY2luID4+IHNpemU7CiAgICB2ZWN0b3I8ZG91YmxlPiBhcnJheSggc2l6ZSApOwogICAgZ2VuZXJhdGUoIGJlZ2luKCBhcnJheSApLCAKICAgICAgICAgICAgICBlbmQgICggYXJyYXkgKSwgCiAgICAgICAgICAgICAgW10oKQogICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBpbnQgeDsKICAgICAgICAgICAgICAgICAgICBjaW4gPj4geDsKICAgICAgICAgICAgICAgICAgICByZXR1cm4geDsKICAgICAgICAgICAgICB9ICk7CiAgICBkb3VibGUgcHJvZHVjdCA9IDEuMDsKICAgIGZvcl9lYWNoKCBiZWdpbiggYXJyYXkgKSwgCiAgICAgICAgICAgICAgZW5kICAoIGFycmF5ICksIAogICAgICAgICAgICAgIFsmcHJvZHVjdF0oIGF1dG8geCApCiAgICAgICAgICAgICAgewogICAgICAgICAgICAgIAkgIGlmKCBuZWdhdGl2ZSggeCApICkKICAgICAgICAgICAgICAJICB7CiAgICAgICAgICAgICAgCSAgCSAgcHJvZHVjdCAqPSB4OwogICAgICAgICAgICAgIAkgIH0KICAgICAgICAgICAgICB9ICk7CiAgICBjb3V0IDw8IHByb2R1Y3QgPDwgIiAiIDw8IGNvdW50X2lmKCBiZWdpbiggYXJyYXkgKSwgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmQgICggYXJyYXkgKSwgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmVnYXRpdmU8ZG91YmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7CglyZXR1cm4gMDsKfQ==