{"problem":{"name":"G. Large Bouquets","description":{"content":"A flower shop has got _n_ bouquets, and the _i_\\-th bouquet consists of _a__i_ flowers. Vasya, the manager of the shop, decided to make large bouquets from these bouquets. Vasya thinks that a bouquet","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF926G"},"statements":[{"statement_type":"Markdown","content":"A flower shop has got _n_ bouquets, and the _i_\\-th bouquet consists of _a__i_ flowers. Vasya, the manager of the shop, decided to make large bouquets from these bouquets.\n\nVasya thinks that a bouquet is large if it is made of **two or more** initial bouquets, and there is a constraint: the total number of flowers in a large bouquet should be **odd**. Each of the initial bouquets can be a part of at most one large bouquet. If an initial bouquet becomes a part of a large bouquet, all its flowers are included in the large bouquet.\n\nDetermine the maximum possible number of large bouquets Vasya can make.\n\n## Input\n\nThe first line contains a single positive integer _n_ (1 ≤ _n_ ≤ 105) — the number of initial bouquets.\n\nThe second line contains a sequence of integers _a_1, _a_2, ..., _a__n_ (1 ≤ _a__i_ ≤ 106) — the number of flowers in each of the initial bouquets.\n\n## Output\n\nPrint the maximum number of large bouquets Vasya can make.\n\n[samples]\n\n## Note\n\nIn the first example Vasya can make 2 large bouquets. For example, the first bouquet can contain the first and the fifth initial bouquets (the total number of flowers is then equal to 9), and the second bouquet can consist of the second and the third initial bouquets (the total number of flowers is then equal to 7). The fourth initial bouquet is unused in this scheme.\n\nIn the second example it is not possible to form a single bouquet with odd number of flowers.\n\nIn the third example Vasya can make one large bouquet. For example, he can make it using all three initial bouquets. The size of the large bouquet is then equal to 11 + 4 + 10 = 25.","is_translate":false,"language":"English"}],"meta":{"iden":"CF926G","tags":[],"sample_group":[["5\n2 3 4 2 7","2"],["6\n2 2 6 8 6 12","0"],["3\n11 4 10","1"]],"created_at":"2026-03-03 11:00:39"}}