#!/usr/bin/env python3.11 from common import OASISLine if __name__ == "__main__": analysis = OASISLine.parse("input.txt") extrapolation = map(lambda o: o.reduce().extrapolate(), analysis) print(sum(extrapolation))