func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, a;     cin >> n;     vector<int> nums(8, 0);     for (int i = 0; i < n; i++) {       cin >> a;       nums[a]++;     }     if (nums[7] > 0 || nums[5] > 0) {       cout << -1;       return 0;     }     if (nums[2] < nums[4]) {       cout << -1;       return 0;     }     if (nums[1] == nums[2] + nums[3] && nums[1] == nums[4] + nums[6]) {       if (nums[2] - nums[4] + nums[3] != nums[6]) {         cout << -1;       } else {         while (nums[4] > 0) {           cout << 1 <<     << 2 <<     << 4 << endl;           nums[4]--;           nums[2]--;         }         while (nums[2] > 0) {           cout << 1 <<     << 2 <<     << 6 << endl;           nums[2]--;         }         while (nums[3] > 0) {           cout << 1 <<     << 3 <<     << 6 << endl;           nums[3]--;         }       }     } else {       cout << -1;     }     return 0;   }   