a = 1; b = 2; fibSum = 0;

while (b <= 4000000):
    fibSum += b;
    temp = a + 2*b;
    b = 2*a + 3*b;
    a = temp;
    
print "Fib %d" % (fibSum);
903d5f9b24bbd7c51b68d6cb8c78d1eec47311c7
a = 1; b = 2; fibSum = 0;

while (b <= 4000000):
    fibSum += b;
    temp = a + 2*b;
    b = 2*a + 3*b;
    a = temp;
    
print "Fib %d" % (fibSum);