#include using namespace std; using i64 = long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); auto solve = [&]() { int n, q; cin >> n >> q; if (2 * n > q) { cout << "No" << '\n'; return; } cout << "Yes" << '\n'; for (int i = 0; i < n; i++) { int x; cin >> x; cout << 1 << ' ' << 1 << ' ' << x << '\n'; cout << 2 << ' ' << 1 << '\n'; } for (int i = 0; i < q - 2 * n; i++) { cout << 1 << ' ' << 1 << ' ' << 1 << '\n'; } }; solve(); return 0; }