#include <bits/stdc++.h>
using namespace std;
#define ms(s,n) memset(s,n,sizeof(s))
#define all(a) a.begin(),a.end()
#define present(t, x) (t.find(x) != t.end())
#define sz(a) int((a).size())
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FORd(i, a, b) for (int i = (a) - 1; i >= (b); --i)
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define mp make_pair
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<int,int> pi;
typedef vector<int> vi;
typedef vector<pi> vii;
const int MOD = (int) 1e9+7;
const int INF = (int) 1e9+1;
inline ll gcd(ll a,ll b){ll r;while(b){r=a%b;a=b;b=r;}return a;}
inline ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
int bs(pi a[], int l, int r, int x){
while(l <= r){
int m = (l + r) / 2;
if(a[m].fi == x){
return a[m].se;
}
else if (a[m].fi < x) l = m + 1;
else r = m - 1;
}
return -1;
}
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int n, x; cin >> n >> x;
pi a[n];
for(int i = 0; i < n; i++){
cin >> a[i].fi;
a[i].se = i;
}
//O(n*nlogn)
sort(a, a + n);
for(int i = 0; i < n - 2; i++){
int l = i +1, r = n - 1;
int y = x - a[i].fi;
while(l < r){
if(a[l].fi + a[r].fi == y){
cout << a[i].se + 1 << " " << a[l].se + 1 <<" " << a[r].se + 1 << endl;
return 0;
}
else if (a[l].fi + a[r].fi < y){
++l;
}
else --r;
}
}
cout << "IMPOSSIBLE\n";
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKI2RlZmluZSBtcyhzLG4pIG1lbXNldChzLG4sc2l6ZW9mKHMpKQojZGVmaW5lIGFsbChhKSBhLmJlZ2luKCksYS5lbmQoKQojZGVmaW5lIHByZXNlbnQodCwgeCkgKHQuZmluZCh4KSAhPSB0LmVuZCgpKQojZGVmaW5lIHN6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