def test():
    assert 1 == if28(0, 1, 1, 0, 0)
    assert 2 == if28(0, 2, 0, 0, 0)
    assert 3 == if28(0, 3, 1, 0, 0)
    assert 4 == if28(0, 4, 2, 0, 0)
    assert 5 == if28(0, 5, 2, 1, 1)
    assert 6 == if28(0, 6, 2, 2, 2)
    assert 7 == if28(0, 7, 3, 0, 0)
    assert 10 == if28(0, 8, 3, 1, 1)
    assert 13 == if28(0, 9, 3, 2, 2)
    assert 14 == if28(0, 10, 4, 0, 0)