#include using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; cout << "A+B+C="; int s = a + b + c; if (s == 3) { cout << "Infinity" << endl; } else { cout << s << endl; } return 0; }