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

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    uint A,B,C;
    cin>>A>>B>>C;

    uint X = (A*B + B*C + C*A) * 2;
    uint Y = A*B*C;
    if (X>Y) cout << "2\n"; else cout << "3\n";

    return 0;
}