#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, q; cin >> n >> q; vector x(n); for(auto &&v : x) cin >> v; auto cx = x; sort(cx.begin(), cx.end()); cx.erase(unique(cx.begin(), cx.end()), cx.end()); if(cx.size() > q - n){ cout << "No\n"; return 0; } cout << "Yes\n"; for(int i = 0; i + n < q; i++) cout << 1 << ' ' << i + 1 << ' ' << (i < cx.size() ? cx[i] : 1) << '\n'; for(int i = 0; i < n; i++){ cout << 2 << ' ' << (int)(lower_bound(cx.begin(), cx.end(), x[i]) - cx.begin() + 1) << '\n'; } }