#include <bits/stdc++.h>
#define elem(object,index) object[bounds_check(index,object.size(),__LINE__)]
using namespace std;
inline int bounds_check(int index, int size, int line) {
if (index < 0 or index >= size)
throw out_of_range("At line "+to_string(line)+": element index "+to_string(index)+
" is out-of-range [0,"+to_string(size-1)+']');
return index; }
int main() {
int size, index, value;
cin >> size >> index >> value;
vector<int> x(size);
elem(x,index) = value;
for (int index = 0; index < size; ++index)
cout << "x[" << index << "] = " << x[index] << endl;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgZWxlbShvYmplY3QsaW5kZXgpIG9iamVjdFtib3VuZHNfY2hlY2soaW5kZXgsb2JqZWN0LnNpemUoKSxfX0xJTkVfXyldCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW5saW5lIGludCBib3VuZHNfY2hlY2soaW50IGluZGV4LCBpbnQgc2l6ZSwgaW50IGxpbmUpIHsKCWlmIChpbmRleCA8IDAgb3IgaW5kZXggPj0gc2l6ZSkgCgkJdGhyb3cgb3V0X29mX3JhbmdlKCJBdCBsaW5lICIrdG9fc3RyaW5nKGxpbmUpKyI6IGVsZW1lbnQgaW5kZXggIit0b19zdHJpbmcoaW5kZXgpKwoJCQkJCQkJIiBpcyBvdXQtb2YtcmFuZ2UgWzAsIit0b19zdHJpbmcoc2l6ZS0xKSsnXScpOwoJcmV0dXJuIGluZGV4OyB9CgkKaW50IG1haW4oKSB7CgkKCWludCBzaXplLCBpbmRleCwgdmFsdWU7CgkKCWNpbiA+PiBzaXplID4+IGluZGV4ID4+IHZhbHVlOwoJCgl2ZWN0b3I8aW50PiB4KHNpemUpOyAKCQoJZWxlbSh4LGluZGV4KSA9IHZhbHVlOyAKCQoJZm9yIChpbnQgaW5kZXggPSAwOyBpbmRleCA8IHNpemU7ICsraW5kZXgpCgkJY291dCA8PCAieFsiIDw8IGluZGV4IDw8ICJdID0gIiA8PCB4W2luZGV4XSA8PCBlbmRsOyAKfQo=