import java.util.List;
import java.util.stream.Collectors;

public class Main {
	public static void main(String[] args) {
		List<List<Integer>> cases = List.of(List.of(1, 1, 2), List.of(3, 3, 2), List.of(4, 5, 1));
		List<Integer> result = cases.stream()
									.map(e -> e.stream().reduce(0, Integer::sum))
									.collect(Collectors.toList());
		System.out.println(result);
	}
}