using System;
using System.Linq;
public class Test
{
public static void Main()
{
var np = new [] {1, 2, 4, 7, 0};
var res = np.Zip(np.Skip(1), (a,b)=>b-a).ToArray();
foreach (var n in res) {
Console.WriteLine(n);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQl2YXIgbnAgPSBuZXcgW10gezEsIDIsIDQsIDcsIDB9OwoJCXZhciByZXMgPSBucC5aaXAobnAuU2tpcCgxKSwgKGEsYik9PmItYSkuVG9BcnJheSgpOwoJCWZvcmVhY2ggKHZhciBuIGluIHJlcykgewoJCQlDb25zb2xlLldyaXRlTGluZShuKTsKCQl9Cgl9Cn0=