def twoAdicity(num):
    """
    Description:

        Computes the 2-adicity order of an integer

    Input:

        num - integer

    Output:

        Integer - 2-adicity order
    """
    if num % 2  != 0 : return 1
    factor = 0
    while num % 2  == 0 :
        num /= 2
        factor += 1
    return factor