#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
vector<int> vec { 1, 2, 3, 4};
reverse(vec.begin(), vec.begin()+2);
for(int i = 0; i< vec.size();i++)
cout<<vec[i]<<"\n";
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3I8aW50PiB2ZWMgeyAxLCAyLCAzLCA0fTsKCXJldmVyc2UodmVjLmJlZ2luKCksIHZlYy5iZWdpbigpKzIpOwoJZm9yKGludCBpID0gMDsgaTwgdmVjLnNpemUoKTtpKyspCgkgICAgY291dDw8dmVjW2ldPDwiXG4iOwoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0=