A,B,S=map(int,input().split()) X=0 for i in range(1,S+1): for j in range(1,S//i+1): X+=max(0,A-i+1)*max(0,B-j+1) print(X)