#include <iostream>
using namespace std;
void func(int i, int& j, int p){
i++;
j++;
p++;
}
int main(){
int i = 10;
int j = 6;
int &p = i;
func(i, j, p);
cout << i << " " << j << " " << p;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBmdW5jKGludCBpLCBpbnQmIGosIGludCBwKXsKICAgIGkrKzsKICAgIGorKzsKICAgIHArKzsKfQoKaW50IG1haW4oKXsKICAgIGludCBpID0gMTA7CiAgICBpbnQgaiA9IDY7CiAgICBpbnQgJnAgPSBpOwogICAgZnVuYyhpLCBqLCBwKTsKICAgIGNvdXQgPDwgaSA8PCAiICIgPDwgaiA8PCAiICIgPDwgcDsKfQ==