import java.io.*; import java.math.*; import java.util.*; public class LLL { static double IP(ArrayList> B1,int x,ArrayList> B2,int y){ double res=0; int n=B1.size(); for(int i=0;i> GS(ArrayList> Basis){ int n=Basis.size(); ArrayList> Basis_ = new ArrayList>(); for(int i=0;i()); for(int j=0;j> Basis,ArrayList> Basis_, int i, int x){ int n=Basis.size(); ArrayList pi = new ArrayList(); for(int j=0;j LLL(ArrayList> Basis){ int n=Basis.size(); double delta=(1.0/4.0)+Math.pow(3.0/4.0,(double)n/(double)(n-1)); ArrayList svp = new ArrayList(); for(int j=0;j> Basis_=GS(Basis); while(true){ /* for(int i=0;i=0;j--){ double c=(IP(Basis,i,Basis_,j)/IP(Basis_,j,Basis_,j)); //System.out.println(c+" "+Math.round(c)); for(int k=0;kp2){ for(int j=0;j coe; double b=sc.nextDouble(),p=sc.nextDouble(); for(n=4;;n+=4){ ArrayList> Basis = new ArrayList>(); for(int i=0;i()); for(int i=0;i tmp=LLL(Basis); Collections.reverse(tmp); coe=new ArrayList(); for(int i=0;i25){ ok=false; } } if(ok){ break; } } char[] s = new char[n]; char[] t = new char[n]; for(int i=0;i=0){ s[i]=(char)('a'+smt); t[i]='a'; }else{ s[i]='a'; t[i]=(char)('a'-smt); } } String S = new String(s); String T = new String(t); System.out.println(S); System.out.println(T); } }