using System;
public class Program
{
public static void Main()
var temp1 = "6.";
var indexOfDot = temp1.IndexOf('.');
if (indexOfDot >= 0)
temp1 = temp1.Remove(indexOfDot);
Console.WriteLine(temp1);
}