using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
string[] words = "текст любой текст".Split(null);
for(var i = 0; i < words.Length; i++) {
words[i] = words[i].First().ToString().ToUpper() + words[i].Substring(1);
}
//Your code goes here
Console.WriteLine(String.Join(" ", words));
}
}
}