Let $a$ and $b$ be integers such that $a \equiv 3 \pmod{7}$ and $b \equiv 5 \pmod{11}$. What is the remainder when $a^3 + b^4$ is divided by $77$? Let's think step by step and output the final answer within \boxed{}.
user