Update extended_gcd.cpp

Control the input.