using System;
public class Program
{
public static void Main()
long rawAmount = 123450; // expected to be 123,45
decimal amount = System.Convert.ToDecimal(rawAmount) / 1000;
Console.WriteLine(amount);
}