public static String getp(String str)
	{
		mystr="";
		double l=str.length(),s;
		l=l-Math.ceil(l/3);
		//System.out.println("math round l="+l);
		if(l<3)
		s=17;
		else if(l%2==0)
		s=3*l;
		else
		s=4*l;
		//System.out.println("s="+s);
					
		for(int k=0;k<l;k++)
		{
			int d=str.charAt(k)-(int)s;
			if(d<40)
			{
				d=d+86;
			mystr=(char)d+mystr;
			}
			else
				mystr=(char)d+mystr;		
		}
		//System.out.println("length is now="+mystr.length());
		
		return mystr;
	}