public static void Main()
Encoding ascii = Encoding.ASCII;
string text = Console.ReadLine();
byte[]arr = ascii.GetBytes(text);
int f = (p - 1) * (q -1);
string s = ascii.GetString(res);
public static int ModPow(int m, int e, int n)
int x = Convert.ToInt32(Math.Pow(m,e) % n);
public static byte[] Encryption(byte[] arr,int e, int n)
byte[]res = new byte[arr.Length];
for(int i = 0; i<arr.Length; i++)
res[i] = Convert.ToByte(Math.Pow(arr[i],e) % n);
public static int gcd(int a, int b)