A flam is a grace note (light stroke) followed by a primary stroke. The basic structure is:
Getting your flams right requires precise timing. Start slow and focus on: