Found optimal magic number for given exercise