#include <stdio.h>
int main(void) {
int a, b, c, d, nrpozitive;
scanf("%d%d%d%d", &a, &b, &c, &d);
if(a > 0)
nrpozitive++;
if(b > 0)
nrpozitive++;
if(c > 0)
nrpozitive++;
if(d > 0)
nrpozitive++;
if(nrpozitive == 3)
printf("Sunt exact 3 numere pozitive");
else
printf("Nu sunt 3 numere pozitive");
return 0;
}