using System;
public class Program
{
public static void Main()
var str = "Hello World";
var tmp = str.ToCharArray();
var last = tmp[tmp.Length-1];
str = str.Remove(str.Length-1) + last.ToString().ToUpper();
Console.WriteLine(str);
}