We discuss the problem of separating the total correlations in a given quantum joint probability distribution into nonlocality, contextuality and classical correlations. Bell discord and Mermin discord which qunatify nonlocality and contextuality of quantum correlations are interpreted as distance measures in the nonsignaling polytope. A measure of total correlations is introduced to divide the total amount of correlations into a purely nonclassical part and a classical part. We show that quantum correlations satisfy additivity relations among these three measures.