brute forced #35
quite ugly solution for #36
Native F# solution without .net framework