#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll A,B,C; cin>>A>>B>>C; cout<<((A*B+B*C+C*A)*2>A*B*C?2:3)<<'\n'; }