#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,j;
	bool t;
	for(i=65;i<=90;i++)
	{
		for(j=2;j<=sqrt(i);j++)
		{
			t=1;
			if(i%j==0)
			{
				t=0;
				break;
			}
			
		}
		if(t==1)
		{
			cout<<i<<" "<<char(i)<<endl;
		}
	}
	for(i=97;i<=122;i++)
	{
		for(j=2;j<=sqrt(i);j++)
		{
			t=1;
			if(i%j==0)
			{
				t=0;
				break;
			}
			
		}
		if(t==1)
		{
			cout<<i<<" "<<char(i)<<endl;
		}
	}
 return 0;
 }

/**************************************************************
	Problem: 1972
	User: lzc
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/