def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        res.append(':')
        res.append('.'.join((a.get_id(version) for a in self.args)))
        res.append(':')
        return ''.join(res)
    res = []
    res.append('I')
    if (len(self.args) > 0):
        for a in self.args[:(- 1)]:
            res.append(a.get_id(version))
        if self.packExpansion:
            res.append('J')
        res.append(self.args[(- 1)].get_id(version))
        if self.packExpansion:
            res.append('E')
    res.append('E')
    return ''.join(res)
def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        res.append(':')
        res.append('.'.join((a.get_id(version) for a in self.args)))
        res.append(':')
        return .join(res)
    res = []
    res.append('I')
    if (len(self.args) > 0):
        for a in self.args[:(- 1)]:
            res.append(a.get_id(version))
        if self.packExpansion:
            res.append('J')
        res.append(self.args[(- 1)].get_id(version))
        if self.packExpansion:
            res.append('E')
    res.append('E')
    return .join(res)