def imperial(grams):
    """
    Converts grams to ounces.

    If ounces are greater than 24, they are converted to pounds.
    """
    grams = int(grams)
    ounces = grams * 0.0352739619

    if ounces > 24:
        pounds = ounces / 16
        return u'%s %s' % (str(round(pounds, 2)), 'lb')

    return u'%s %s' % (str(round(ounces, 2)), 'oz')