$MASK to $G