Input
17 × 18 × 1