Cuboids

Only two possible solutions:

1x2x16

2x4x7