import java.util.stream.*;

public class peeking {
    public static void main(String[] args) {
        int the_sum= IntStream.of(1, 3, 12, 2, 4,27,8)
                     .peek(e -> System.out.println("The List: " + e))
                     .sorted()                 
                     .filter(e->(e%2==0))
                     .peek(e -> System.out.println("The Sorted Even Numbers: " + e))
                     .map(x->x*x)              
                     .sum();  
        System.out.println("The Sum of Squares of Even Numbers: "+the_sum);

    }
}