using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static int LengthOfLastWord(string str) {
List<string> words = str.Split(" ").ToList();
return words[words.Count - 1].Length;
}
public static void Main(string[] args)
{
string input = "java c# go javascript rust";
Console.WriteLine("The length of the last word is: " + LengthOfLastWord(input));
}
}
/*
run:
public override void Print(string s): C#
*/