#include using namespace std; #ifdef local #include #else #define debug(...) #endif #define rep(i, n) for (int i = 0; i < n; i++) template istream& operator>>(istream& I, vector& V) {for (T& X : V) I >> X; return I;} template inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;} template inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;} vector di = {-1, 1, 0, 0}, dj = {0, 0, -1, 1}; int inf = 1e9; long INF = 1e18; int main() { int n, q; cin >> n >> q; vector x(n); cin >> x; set st(x.begin(), x.end()); if (st.size() + n > q) { cout << "No\n"; return 0; } else { cout << "Yes\n"; } for (int a : st) { cout << 1 << " " << a << " " << a << '\n'; } rep(i, (q - n) - st.size()) { cout << 1 << " " << "1 1\n"; } rep(i, n) { cout << 2 << " " << x[i] << '\n'; } return 0; }