import json with open("/tmp/map.json") as f: cmap = json.load(f) c = 0 for y in range(1080): for x in range(1920): if str(c) not in cmap: print(f"{c=} {x=} {y=}") c+=1