public static void main(String[]args)
	{
		int limit = 4000000;
		int evenSum = 0;
		int n = 0;
		int m = 1;
		int temp = 0;
		
		while(n < limit)
		{
			temp = m;
			m = n + m;
			n = temp;
			if(n % 2 == 0) evenSum+=n;
		}
		System.out.println(evenSum);
	}