#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; 
}
