Find the modular inverse of \( 17 \) modulo \( 312 \). Express your answer as an integer from \( 0 \) to \( 311 \), inclusive. Let's think step by step and output the final answer within \boxed{}.
user