using System;
public class Program
{
public static void Main()
int bigX = 123456;
MyInt myInt = new MyInt(bigX);
Console.WriteLine("My int {0} turned into A: {1} B: {2} C: {3}", bigX, myInt.A, myInt.B, myInt.C);
}
public class MyInt
public int A { get; set; }
public int B { get; set; }
public int C { get; set; }
public MyInt(){}
public MyInt(int x) {
A = x%100;
x /= 100;
B = x%100;
C = x%100;