using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Class1
{
point A = new point(11, 4);
point B = new point(120, 41);//公钥
public const int k = 9;
public const int a = 5;
public const int b = 37;
public const int p = 127;
public const int r = 7;
public struct point
{
public int x;
public int y;
public point(int x, int y)
{
this.x = x;
this.y = y;
}
public point(point p)
{
this.x = p.x;
this.y = p.y;
}
}
public int getX_1(int x, int mod)
{