import java.util.*; import java.io.*; /*yukicoder 問題No.29 パワーアップ*/ class No29 { public static void main(String[] args){ Scanner scan = new Scanner(System.in); //配列[10]を作る(初期値は0) int [] item = {0,0,0,0,0,0,0,0,0,0}; int powerup = 0; int keep = 0; //敵を倒す回数nを入力 int n = scan.nextInt(); for(int i=0;i