#include <bits/stdc++.h>
using namespace std;
string ans = "10011101000111110010000001111111000000001011";
const int timelim = 2;
int gettime() {
  timeval tv;
  gettimeofday(&tv, NULL);
  int x = tv.tv_sec % timelim * 1000 + tv.tv_usec / 1000;
  return x;
}
int T = 40;
int main() {
  int x = gettime() / T;
  if (x >= 44) {
    x = 0;
  }
  puts(ans[x] == '1' ? "POSSIBLE" : "IMPOSSIBLE");
  int aim = ((x + 1) * T - 440 + timelim * 1000) % (timelim * 1000);
  while (1) {
    int t = gettime();
    if (t <= aim && t >= aim - 1) return 0;
  }
}
