Euler's Number

Problem 330

For example,
Find A(109) + B(109) and give your answer mod 77 777 777.