Check corner cases (N >= 2).