static int process(String line) {
		String[] splts = line.trim().split(" ");
		
		int n = Integer.parseInt(splts[0]), m = Integer.parseInt(splts[1]);
		long c = Long.parseLong(splts[2]);
		
		if(n == 0 && m == 0 && c == 0)
			return 0;
		
		long[] cons = new long[n];
		boolean[] state = new boolean[n];
		long p = 0;
		
		for(int i = 0; i < n; i++) {
			cons[i] = Long.parseLong(readLine().trim());
		}
		long max = 0;
		boolean f = false;
		for(int i = 0; i < m; i++) {
			int dev = Integer.parseInt(readLine().trim()) - 1;

			if(f)
				continue;
			if(state[dev]) {
				p -= cons[dev];
			}
			else {
				p += cons[dev];
			}
			max = Math.max(max, p);
			if(p > c)
				f = true;
			state[dev] = !state[dev];
		}
		
		System.out.println("Sequence "+(++ind));
		if(p > c) {
			System.out.println("Fuse was blown.");
		}
		else {
			System.out.println("Fuse was not blown.");
			System.out.println("Maximal power consumption was "+max+" amperes.");
		}

		System.out.println();
		return 1;

	}