using System;
public class Program
{
public static void Main()
decimal d = 123456.789m;
Console.WriteLine(d.ToString("$0,000.00"));
}