A Midwestern competition awarded 38 ribbons. The number of blue ribbons was 1 less than the number of white ribbons. The number of red ribbons was 3 more than the number of white ribbons. How many of each kind of ribbons was awrded?