using System;
using System.Linq;
class Program
{
static void Main() {
string[] arr = {"c++", "python", "c#", "java"};
int shortest_string_size = (arr.OrderBy(s => s.Length).FirstOrDefault()).Length;
Console.Write(shortest_string_size);
}
}
/*
run:
2
*/