In an open economy, the GNP is measured as