arithmetic first hack