wow that was NOT a d2e level problem :skull:
also seems like those greedy tags are quite greedy for space
ICPC NA North Central and South Division