#include<iostream>
  using namespace std;

  int main()
  {
	  char letter1,letter2;
	  int a,b;

	  cout<<"Please enter the 1st letter:"<<endl;
	  cout<<"Please enter the 2nd letter:"<<endl;
	  cin>>letter1>>letter2;

	  a=static_cast<int>(letter1);
	  b=static_cast<int>(letter2);

	  if (a<=90)
		  {
		      a=(int)a-64;
		  }
	  else a=(int)a-96;

	  if (b<=90)
	      {
	      b=(int)b-64;
	      }
	  else b=(int)b-96;

      cout <<"The output 4-digit code is:"<<endl;
	  if (a<=9,b<=9)
		  cout<<"0"<<a<<"0"<<b<<endl;
	      else if (a<=9,b>9)
			  cout<<"0"<<a<<b<<endl;
		  else if (a>9,b<=9)
			  cout<<a<<"0"<<b<<endl;
		  else cout<<a<<b<<endl;

    return 0;
  }