# [Jelly], <s>39</s> <s>38</s> 37 bytes ØhiⱮɠ’ḅ¥ȷ9Ṃ?⁴‘ Ỵṫ€⁵ḣ€40Fḟ⁶s2ṭ€⁾\xḣ¢ṫ¢ [Try it online!][TIO-jih3fnk3] [Jelly]: https://github.com/DennisMitchell/jelly [TIO-jih3fnk3]: https://tio.run/##dY69TsMwFIX3PMV9AVw7jl2bpUOlLkgsLEGw4MRVW1UsXWBrKvEOZQIVMfEjIRVIhMQQFngM@0XMTVJGznB8f44/e2bn88sQvtaTqX95/rn1y2tXXtX33@/aVauBL7Z@uY7cx9ZVD3716ItXV95hkdCRK2988baIXfXUbj5PL3BXbzBZb0LYY9FZoDvtA2cZBUMTiVVumlZDlisK1jAJwnAGGVUKgBEyYgQddYJH1BEYMhJO@6C0MIBJ3bQZIqkBlSftLAfRzGCIVwkZNogDQo7@GDEyujeVFTBGocVjkLHUIC1WfS4VJFbgP0innpme9xaTw3TH4MgQCgNoGoRuDf5RmqbHqF8 "Jelly – Try It Online" <sub>Now beats 05AB1E! (despite the lack of "convert from hexadecimal" builtin)</sub> Same input format as [Dennis' solution](https://codegolf.stackexchange.com/a/89204). Use `Ɱ`, which is a new feature (short for `Ѐ`). Without it, this would take 38 bytes.