100 20 30 40 1000 1 3 5 1000 1 (3 (5)*3 2)*2 7 0