#include typedef long long ll; typedef unsigned long long ull; #define FOR(i,a,b) for(size_t (i)=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define RANGE(vec) (vec).begin(),(vec).end() using namespace std; class Pi { public: void solve(void) { vector numCnt{20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841}; vector cnt(10,0); string s; cin>>s; REP(i,s.length()) { char c = s[i]; if (c == '.') continue; ++cnt[c-'0']; } int a,b; REP(i,10) { if (cnt[i] < numCnt[i]) a = i; if (cnt[i] > numCnt[i]) b = i; } cout<solve(); delete obj; return 0; } #endif