#include <iostream>
using namespace std;
int main()
{
// a[i] == *(a + i) == *(i + a) == i[a]
int a[] = { 1, 2, 3, 4 };
cout << a[0] << " == " << 0[a] << endl;
cout << a[1] << " == " << 1[a] << endl;
cout << a[1+1] << " == " << (1+1)[a] << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgLy8gYVtpXSA9PSAqKGEgKyBpKSA9PSAqKGkgKyBhKSA9PSBpW2FdCiAgICBpbnQgYVtdID0geyAxLCAyLCAzLCA0IH07CiAgICBjb3V0IDw8IGFbMF0gPDwgIiA9PSAiIDw8IDBbYV0gPDwgZW5kbDsKICAgIGNvdXQgPDwgYVsxXSA8PCAiID09ICIgPDwgMVthXSA8PCBlbmRsOwogICAgY291dCA8PCBhWzErMV0gPDwgIiA9PSAiIDw8ICgxKzEpW2FdIDw8IGVuZGw7CiAgICAKICAgIHJldHVybiAwOwp9