#!/usr/bin/env python


def diff21(n):
    """
    basic solution
    """
    if n > 21:
        return 2 * (n - 21)
    else:
        return 21 - n


def diff21b(n):
    """
    direct return of conditional expression
    """
    return 2 * (n - 21) if n > 21 else 21-n


ad24f466c14efefb15ab650e3b0cc217dbf6bcc6
<mask token>

def diff21(n):
    """
    basic solution
    """
    if n > 21:
        return 2 * (n - 21)
    else:
        return 21 - n


<mask token>

def diff21(n):
    """
    basic solution
    """
    if n > 21:
        return 2 * (n - 21)
    else:
        return 21 - n


def diff21b(n):
    """
    direct return of conditional expression
    """
    return 2 * (n - 21) if n > 21 else 21 - n

#!/usr/bin/env python


def diff21(n):
    """
    basic solution
    """
    if n > 21:
        return 2 * (n - 21)
    else:
        return 21 - n


def diff21b(n):
    """
    direct return of conditional expression
    """
    return 2 * (n - 21) if n > 21 else 21-n

