throw new Error("not implemented");
for (int i = 0; i < members.length; ++i) { if (x >= members[i][1]) continue; if (x < members[i][0]) return members[i][0];  return x + 1; } return -1;
  public int next(int x)  {    throw new Error("not implemented");  }