1640 - Super 008 for Kids

Created by Yonny Mondelo Hernández
Added by ymondelo20 (2011-11-29)
Limits
Total Time: 2000 MS |Memory: 62 MB | Output: 64 MB | Size: 29 KB
Enabled languages
Available in

Description

There are B boys and G girls for playing the new game "Super 008 for Kids". To start playing, they need to choose a group containing exactly K kids containing no less than 4 boys and no less than one girl. How many ways are there to choose a group? Of course, the variants that only differ in the composition of the troupe are considered different.
There are B boys and G girls for playing the new game "Super 008 for Kids". To start playing, they need to choose a group containing exactly K kids containing no less than 4 boys and no less than one girl. How many ways are there to choose a group? Of course, the variants that only differ in the composition of the troupe are considered different.
There are B boys and G girls for playing the new game "Super 008 for Kids". To start playing, they need to choose a group containing exactly K kids containing no less than 4 boys and no less than one girl. How many ways are there to choose a group? Of course, the variants that only differ in the composition of the troupe are considered different.

Input specification

Each line of the input contains three integers B, G, K (4 <= B <= 30, 1 <= G <= 30, 5 <= K <= B+G). B = G = K = 0, is the end of the input.

Each line of the input contains three integers B, G, K (4 <= B <= 30, 1 <= G <= 30, 5 <= K <= B+G). B = G = K = 0, is the end of the input.

Each line of the input contains three integers B, G, K (4 <= B <= 30, 1 <= G <= 30, 5 <= K <= B+G). B = G = K = 0, is the end of the input.

Output specification

The required number of ways, to choose a group, for each line of the input.
The required number of ways, to choose a group, for each line of the input.

Each line of the input contains three integers B, G, K (4 <= B <= 30, 1 <= G <= 30, 5 <= K <= B+G). B = G = K = 0, is the end of the input.

Sample input

4 3 5
5 2 5
0 0 0

Sample output

3
10

Hint(s)

http://coj.uci.cu/contest/
http://coj.uci.cu/contest/
http://coj.uci.cu/contest/