g = 209 mod = 991 print(pow(g, mod - 2, mod))
Standard input is empty
569
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!