#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
#include<vector>
#include<string>
using namespace std;
int main()
{
string s1;
int n;
while (cin >>n)
{
char *s[] = { "azf", "dwg", "hjk" };char**sp = s;cout << **sp << " " << sp[1] << endl;cout << *sp << " " << *(sp+1) << endl;cout << sp << " " << *sp + 1 << endl;cout << *s << " " << *(*(sp + 1)) << endl;cout << s[2] << " " << **sp+1 << endl;cout << *s[2] << " " << (*sp)[1] << endl;cout << *s[2] << " " << *((*sp)+1) << endl;int a[3] = { 1,3,5 };int* q = a;cout << *q << endl;cout << a + 1 << endl;cout << *a << endl;cout << *a+1 << endl;cout << *(a+1) << endl;cout << *q + 1 << endl;cout << *(q + 1) << endl;cout << *(a + 2) << endl;cout << *(q + 2) << endl;
}
}