#line 1 "lib/core.hpp" // Library and Editor Setting is here: https://github.com/Nihonielse/competitive-library #ifndef CORE_FILE #define CORE_FILE #include using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n, s) for (int i = s; i < n; i++) #define vall(v) v.begin(), v.end() constexpr int INF = 1 << 30; constexpr int NEG_INF = -INF; constexpr ll LINF = 1ll << 62; constexpr ll NEG_LINF = -LINF; template inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } template using min_priority_queue = priority_queue,greater>; #endif #line 1 "lib/inout.hpp" #line 1 "lib/core.hpp" // Library and Editor Setting is here: https://github.com/Nihonielse/competitive-library #ifndef CORE_FILE #define CORE_FILE #include using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n, s) for (int i = s; i < n; i++) #define vall(v) v.begin(), v.end() constexpr int INF = 1 << 30; constexpr int NEG_INF = -INF; constexpr ll LINF = 1ll << 62; constexpr ll NEG_LINF = -LINF; template inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } template using min_priority_queue = priority_queue,greater>; #endif #line 5 "lib/inout.hpp" inline void yn(const bool &tf) { if(tf)cout<<"Yes"< istream& operator>>(istream& is,pair& pa){ is >> pa.first >> pa.second; return is; } template ostream& operator<<(ostream& os,pair& pa){ os << pa.first << " " << pa.second; return os; } template istream& operator>>(istream& is,vector& vec){ for(T& item:vec){ is >> item; } return is; } template ostream& operator<<(ostream& os,vector& vec){ for(int i=0;i ostream& operator<<(ostream& os,vector>& vec){ for(int i=0;i ostream& operator<<(ostream& os,vector>& vec){ for(int i=0;i count(10,0); rep(i,13){ int a; cin>>a; count[a]++; } vector countcount(15,0); rep(i,10){ countcount[count[i]]++; } if(countcount[3]==3&&countcount[2]==2){ cout<<2<