import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[2 * n]; for(int i = 0; i < 2 * n; i++) { a[i] = sc.nextInt(); } Arrays.sort(a); int dry = 0; int wet = 0; int moist = 0; int left = 0; int right = 2 * n - 1; for(int i = 0; i < 2 * n; i++) { while(i < right) { if(a[i] + a[right] < 0) { dry++; right--; break; } else { right--; } } } right = 2 * n - 1; for(int i = 2 * n - 1; i >= 0; i--) { while(left < i) { if(a[i] + a[left] > 0) { wet++; left++; break; } else { left++; } } } left = 0; for(int i = 0; i < 2 * n; i++) { while(i < right) { if(a[i] + a[right] == 0) { moist++; right--; break; } else if(a[i] + a[right] > 0) { right--; } else { break; } } } System.out.println(dry + " " + wet + " " + moist); } }