#include using namespace std; int main() { cout << "A+B+C="; int a, b, c; cin >> a >> b >> c; if ((a == 1) && (b == 1)) { if ((c == 1)) cout << "Infinity" << endl; else cout << a+b+c << endl; } else cout << a+b+c << endl; }