checking even or odd numbers with remainder