#include <iostream>
#include <algorithm>
#include "string"
#include "vector"
#include "stack"
#include "set"
#include "queue"
using namespace std;
int majorityElement(vector<int>& nums)
{
sort(nums.begin(),nums.end());
return nums[nums.size()/2];
}
int main()
{
vector<int> v1;
v1.push_back(3);
v1.push_back(2);
v1.push_back(3);
cout << majorityElement(v1);
system("pause");
return 0;
}