import java.math.BigInteger;

class Exponentiation
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BigInteger x = new BigInteger("3");
		int n = 5;
		BigInteger z = x.pow(n);
		System.out.println(z);
		System.out.println(x);
	}
}