a,b,c = map(int, input().split())
while True:
if c==0: break
if a>2*b:
a-=1
else:
b-=1
c-=1
if a>2*b:
print(b)
else:
print(a//2)
'백준 풀이' 카테고리의 다른 글
백준 10820번 파이썬 (0) | 2022.08.24 |
---|---|
백준 10170번 파이썬 (0) | 2022.08.24 |
백준 10824번 파이썬 (0) | 2022.08.24 |
백준 10798 파이썬 (0) | 2022.08.24 |
백준 10807 파이썬 (0) | 2022.08.24 |