#include <iostream>
#include <list>
#include <algorithm>
#include <vector>
using namespace std;
void fun_1121()
{
vector<int> a;
a.push_back(0);
a.push_back(1);
a.push_back(2);
a.push_back(0);
a.push_back(3);
vector<int>::reverse_iterator last = find(a.rbegin(), a.rend(), 0);
cout<<*last<<endl;
cout<<a.rend() - last;
}