using System;
public class Coordinate
{
private int _x = 34;
public int X { get { return _x; } set { _x = value; } }
private readonly int _y = 89;
public int Y { get { return _y; } }
private readonly int _z;
public int Z { get { return _z; } }
public Coordinate()
{
_z = 42;
}
}
public class Test
{
public static void Main()
{
Coordinate x = new Coordinate();
x.X = 123;
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIENvb3JkaW5hdGUKewogICAgcHJpdmF0ZSBpbnQgX3ggPSAzNDsKICAgIHB1YmxpYyBpbnQgWCB7IGdldCB7IHJldHVybiBfeDsgfSBzZXQgeyBfeCA9IHZhbHVlOyB9IH0KCiAgICBwcml2YXRlIHJlYWRvbmx5IGludCBfeSA9IDg5OwogICAgcHVibGljIGludCBZIHsgZ2V0IHsgcmV0dXJuIF95OyB9IH0KICAgIAogICAgcHJpdmF0ZSByZWFkb25seSBpbnQgX3o7CiAgICBwdWJsaWMgaW50IFogeyBnZXQgeyByZXR1cm4gX3o7IH0gfQoKICAgIHB1YmxpYyBDb29yZGluYXRlKCkKICAgIHsKICAgICAgICBfeiA9IDQyOwogICAgfQp9CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJQ29vcmRpbmF0ZSB4ID0gbmV3IENvb3JkaW5hdGUoKTsKCQl4LlggPSAxMjM7Cgl9Cn0=