using System;
using System.Collections.Generic;
using System.Linq;
public class Test
{
public static void Main()
{
List<ushort> takeMaxmumId = new List<ushort>();
var max = takeMaxmumId.Select(x=>x).DefaultIfEmpty((ushort)1).Max();
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgpMaXN0PHVzaG9ydD4gdGFrZU1heG11bUlkID0gbmV3IExpc3Q8dXNob3J0PigpOwp2YXIgbWF4ID0gdGFrZU1heG11bUlkLlNlbGVjdCh4PT54KS5EZWZhdWx0SWZFbXB0eSgodXNob3J0KTEpLk1heCgpOwoJCQoJCQoJfQp9