using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace foryuki { class Program { static int[] n; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var A = ConvertStringArrayToIntArray(Console.ReadLine().Split()); Array.Sort(A); int i = 0; int j = 2 * N - 1; int dry = 0; int wet = 0; int moi = 0; while (i < j) { if (A[i] + A[j] < 0) { dry++; i++; j--; } else { j--; } } i = 0; j = 2 * N - 1; while (i < j) { if (A[i] + A[j] > 0) { wet++; i++; j--; } else { i++; } } i = 0; j = 2 * N - 1; while (i < j) { if (A[i] + A[j] == 0) { moi++; i++; j--; } else { if (Math.Abs(A[i]) > Math.Abs(A[j])) { i++; } else { j--; } } } Console.WriteLine("{0} {1} {2}",dry,wet,moi); } //------------------------------------------------------------- static int[] ConvertStringArrayToIntArray(string[] array) { return Array.ConvertAll(array, str => int.Parse(str)); } static List ConvertStringArrayToIntList(string[] str) { var list = new List(); foreach (var c in str) { list.Add(int.Parse(c)); } return list; } } }