unit sub MAIN(
Str:D $f where *.IO.e = 'input.txt',
UInt:D $ex = 1_000_000
);
sub solve($f, $ex) {
my @universe is Array = $f.IO.lines.map(*.comb.Array);
my @galaxies = (^+@universe X ^+@universe[0]).map({ .Array if @universe[.[0];.[1]] eq '#' });
my @empty-rows = (^+@universe).grep({ $_ != @galaxies.map(*[0]).any });
my @empty-cols = (^+@universe[0]).grep({ $_ != @galaxies.map(*[1]).any });