{"raw_statement":[{"iden":"problem statement","content":"We have $N+M$ balls, each of which has an integer written on it.  \nIt is known that:\n\n*   The numbers written on $N$ of the balls are even.\n*   The numbers written on $M$ of the balls are odd.\n\nFind the number of ways to choose two of the $N+M$ balls (disregarding order) so that the sum of the numbers written on them is even.  \nIt can be shown that this count does not depend on the actual values written on the balls."},{"iden":"constraints","content":"*   $0 \\leq N,M \\leq 100$\n*   $2 \\leq N+M$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $M$"},{"iden":"sample input 1","content":"2 1"},{"iden":"sample output 1","content":"1\n\nFor example, let us assume that the numbers written on the three balls are $1,2,4$.\n\n*   If we choose the two balls with $1$ and $2$, the sum is odd;\n*   If we choose the two balls with $1$ and $4$, the sum is odd;\n*   If we choose the two balls with $2$ and $4$, the sum is even.\n\nThus, the answer is $1$."},{"iden":"sample input 2","content":"4 3"},{"iden":"sample output 2","content":"9"},{"iden":"sample input 3","content":"1 1"},{"iden":"sample output 3","content":"0"},{"iden":"sample input 4","content":"13 3"},{"iden":"sample output 4","content":"81"},{"iden":"sample input 5","content":"0 3"},{"iden":"sample output 5","content":"3"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}