from typing import List


def argv_pars(argv: List[str]) -> int:
    """Parses argv, returns first encountered int or 30, if no int found

    Args:
        argv (List[str]): sys.argv

    Returns:
        int: i >= 1, or 30
    """
    for i in argv:
        try:
            return max(int(i), 1)
        except Exception:
            pass
    return 30