import ctypes


def print_version(version):
    """Return string representation of version number."""

    class Version(ctypes.Union):
        _fields_ = [("uint", ctypes.c_uint), ("byte", ctypes.c_ubyte * 4)]

    result = []
    for i in reversed(Version(uint=version).byte):
        if i or result:
            result.append(f"{i}")
    return ".".join(result)