/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.function.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static Function<Integer, Integer> make_lambda() {
		int n = 0;
		return a -> n += a;
	}
	public static void main (String[] args) throws java.lang.Exception
	{
		Function<Integer, Integer>
		    fn1 = make_lambda(),
		    fn2 = make_lambda();
		System.out.println(fn1.apply(2));
		System.out.println(fn2.apply(3));
	}
}