using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
static void Main(string[] args)
{
string[] curries = { "abc", "abcd", "ab" };
Console.WriteLine(curries.Aggregate(0,(a, b) => a + b.Length));
}
}