#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;
}