Tenka1 Programmer Beginner Contest has begun.
Tenka1 Programmer Beginner Contest has ended.
Range of N ?
「N に対して h,n,w≤3500 となる解が存在することが保証される。」以外の制約はありません。 ----- There is no constraint other than "It is guaranteed that, for the given integer N, there exists a solution such that h,n,w≤3500."