def METHOD_NAME(hodge):  # Table 5.3 of Deligne, page 17
    """
    takes a Hodge structures and returns
    0,1,2,3 such that
    the root number at oo is I^it
    """
    u = 0
    for h in hodge:
        if h[0] < h[1]:
            u = u+(h[1]-h[0]+1)
        if h[0] == h[1]:
            u = u+h[2]  # h[2] is simply eps in Deligne's notation
    return u % 4