using System;
using System.Numerics;
public class Program
{
public static void Main()
BigInteger a = 0;
BigInteger del = 0;
BigInteger nad = 0;
for(BigInteger i=0; i<210; i++)
a = i%19;
BigInteger b = i%11;
BigInteger c = 0;
BigInteger d = BigInteger.ModPow(i,9,19);
BigInteger cc = 0;
BigInteger dd = BigInteger.ModPow(i,5,11);
if(d == 18)
c = -1;
else c = 1;
if(dd == 10)
cc = -1;
else cc = 1;
if(a == 0 | b == 0)
continue;
else
if(c == cc)
if(c==1)
Console.WriteLine(i + "-1 mod 177 = ");//Console.WriteLine(i);
if(c == cc & c==-1)
continue;//Console.WriteLine(i + " нет обратного числа");
}
else continue;//Console.WriteLine("-");