A,B,S = map(int,input().split()) ans = 0 for dx in range(1,A+1): n = min(S//dx,B) ans += (A-dx+1)*((B+1)*n-((n+1)*n)//2) print(ans)