you n stick give lengthsyour task choose exactly way form rectangle no stick cut piece rectangle form single stick no stick choose multiple time it guarantee possible choose stickslet s area rectangle p perimeter rectangle the choose rectangle value fracp2s minimal possible the value take roundingif multiple answer print themeach testcase contain list stick require solve problem separately