using System;
using System.Linq;
public class Test
{
public static void Main()
{
var res = new[] {"quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"}
.Select((v, i) => new {Index = i, Value = v})
.GroupBy(p => p.Index / 2)
.ToDictionary(g => g.First().Value, g => g.Last().Value);
foreach (var p in res) {
Console.WriteLine("{0} - {1}", p.Key, p.Value);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKICAgIHZhciByZXMgPSBuZXdbXSB7InF1aWNrIiwgImJyb3duIiwgImZveCIsICJqdW1wcyIsICJvdmVyIiwgInRoZSIsICJsYXp5IiwgImRvZyJ9CiAgICAgICAgLlNlbGVjdCgodiwgaSkgPT4gbmV3IHtJbmRleCA9IGksIFZhbHVlID0gdn0pCiAgICAgICAgLkdyb3VwQnkocCA9PiBwLkluZGV4IC8gMikKICAgICAgICAuVG9EaWN0aW9uYXJ5KGcgPT4gZy5GaXJzdCgpLlZhbHVlLCBnID0+IGcuTGFzdCgpLlZhbHVlKTsKICAgIGZvcmVhY2ggKHZhciBwIGluIHJlcykgewogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJ7MH0gLSB7MX0iLCBwLktleSwgcC5WYWx1ZSk7CiAgICB9Cgl9Cn0=