<html><head><title></title></head><body></body></html>

<script type="text/javascript">
var data= [
  {name: 'map',                    weight:  9, value:150, pieces:1},
  {name: 'compass',                weight: 13, value: 35, pieces:1},
  {name: 'water',                  weight:153, value:200, pieces:2},
  {name: 'sandwich',               weight: 50, value: 60, pieces:2},
  {name: 'glucose',                weight: 15, value: 60, pieces:2},
  {name: 'tin',                    weight: 68, value: 45, pieces:3},
  {name: 'banana',                 weight: 27, value: 60, pieces:3},
  {name: 'apple',                  weight: 39, value: 40, pieces:3},
  {name: 'cheese',                 weight: 23, value: 30, pieces:1},
  {name: 'beer',                   weight: 52, value: 10, pieces:3},
  {name: 'suntan, cream',          weight: 11, value: 70, pieces:1},
  {name: 'camera',                 weight: 32, value: 30, pieces:1},
  {name: 'T-shirt',                weight: 24, value: 15, pieces:2},
  {name: 'trousers',               weight: 48, value: 10, pieces:2},
  {name: 'umbrella',               weight: 73, value: 40, pieces:1},
  {name: 'waterproof, trousers',   weight: 42, value: 70, pieces:1},
  {name: 'waterproof, overclothes',weight: 43, value: 75, pieces:1},
  {name: 'note-case',              weight: 22, value: 80, pieces:1},
  {name: 'sunglasses',             weight:  7, value: 20, pieces:1},
  {name: 'towel',                  weight: 18, value: 12, pieces:2},
  {name: 'socks',                  weight:  4, value: 50, pieces:1},
  {name: 'book',                   weight: 30, value: 10, pieces:2}
];

function findBestPack() {
	var m= [[0]];