import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String[] str = bf.readLine().split(" ");
int positive_count = 0;
int negative_count = 0;
for(int i = 0;i<str.length;i++){
if(Integer.parseInt(str[i])>0){
positive_count++;
}
if(Integer.parseInt(str[i])<0){
negative_count++;
}
}
System.out.println("positive:"+positive_count);
System.out.println("negative:"+negative_count);
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String[] str = bf.readLine().split(" ");
int positive_count = 0;
int negative_count = 0;
for(int i = 0;i<str.length;i++){
if(Integer.parseInt(str[i])>0){
positive_count++;
}
if(Integer.parseInt(str[i])<0){
negative_count++;
}
}
System.out.println("positive:"+positive_count);
System.out.println("negative:"+negative_count);
}
}