Learn かろうじて in the app in under 3 minutes
JLPT N3 · Question 164
Well done, that is the right answer.
ぎりぎりで終電に間に合った。
Your answer: かろうじて