using System;
public class Test
{
public static void Main()
{
foreach (string s in new[] {"123456","456789","345678","123467","901234"}) {
bool res = "0123456789".Contains(s);
Console.WriteLine("{0} : {1}", s, res);
}
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCWZvcmVhY2ggKHN0cmluZyBzIGluIG5ld1tdIHsiMTIzNDU2IiwiNDU2Nzg5IiwiMzQ1Njc4IiwiMTIzNDY3IiwiOTAxMjM0In0pIHsKCQkJYm9vbCByZXMgPSAiMDEyMzQ1Njc4OSIuQ29udGFpbnMocyk7CgkJCUNvbnNvbGUuV3JpdGVMaW5lKCJ7MH0gOiB7MX0iLCBzLCByZXMpOwoJCX0KCX0KfQ==