
map(function, iterable)
- function : 적용할 함수
- iterable : 함수를 적용할 데이터 집합
map(int,input().split())
-> int()함수적용해서 사용자로부터 입력받기

#백준 #18301 (Rats)
# N1, N2, N12 입력
N1,N2,N12 = map(int,input().split())
# print(N1,N2,N12)
# Result 출력
Result = (N1+1)*(N2+1) // (N12 + 1) -1
print(Result)