a,b,c=int(input().split()) count=0 for i in range(c): if( i != a or i != b): count = count + 1