x,y,d = map(int,raw_input().split()) mp = [[j + i for j in range(x+1)] for i in range(y+1)] c = 0 for i in mp: c += i.count(d) print c