code siu ezz

nhi K29 tin 2024-12-05 13:53:36

#include <bits/stdc++.h> using namespace std;

main() { long long m , n , k; cin >> m >> n >> k;

long long maxGroup = min(min(m / 2 , n) , (m + n - k) / 3);

cout << maxGroup << '\n';

}