import sys input=lambda: sys.stdin.readline().rstrip() a,b,c=map(int,input().split()) n=a+10*b for i in range(1,n+1): for j in range(a+1): for k in range(b+1): if j+10*k