/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
class FibonacciEven {
public static void main
(String[] args
) { int num=4000000;
int fib=0;
int t2=2;
int t1=1;
int sum=2;
while (fib<num) {
fib=t1+t2;
t1=t2;t2=fib;
if(fib<num)
if(fib%2==0)
sum+=fib;
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBGaWJvbmFjY2lFdmVuIHsKCnB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCWludCBudW09NDAwMDAwMDsKCWludCBmaWI9MDsKCWludCB0Mj0yOwoJaW50IHQxPTE7CglpbnQgc3VtPTI7Cgl3aGlsZSAoZmliPG51bSkgeyAKCQlmaWI9dDErdDI7CgkJdDE9dDI7dDI9ZmliOwoJCWlmKGZpYjxudW0pCgkJCWlmKGZpYiUyPT0wKQoJCQkJc3VtKz1maWI7Cgl9CglTeXN0ZW0ub3V0LnByaW50bG4oc3VtKSA7Cn0KCn0gCg==