def METHOD_NAME(svalue: str) -> int:
    sline = svalue.split('.')
    if len(sline) == 2:
        avalue = int(sline[0])
        bvalue = int(sline[1])
        if bvalue != 0:
            raise ValueError()
        else:
            return avalue