The first line contains a single integer $n$, denoting the number of packing box types provided by the delivery service ($1 \le n \le 1000$).

The $i$-th of the following $n$ lines contains three integers $w_i$, $h_i$, and $d_i$, denoting the width, height, and depth of the $i$-th packing box ($1 \le w_i, h_i, d_i \le 1000$).