# Minimal distance to PiMinimal distance to Pi

Given two integers $q_1$ and $q_2$ ($1 \le q_1 \le q_2 \le 10^{15}$), find and print a common fraction $p/q$ such that $q_1 \le q \le q_2$ and $\vert p/q−\pi \vert$ is minimal. If there are several fractions having minimal distance to $\pi$, choose the one with the smallest denominator.