#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
//#include <utility>
#include <set>
#include <iostream>
//#include <memory>
#include <string>
#include <vector>
#include <algorithm>
//#include <functional>
#include <sstream>
//#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
//#include <cctype>
#include <cstring>
//#include <ctime>
#include <iterator>
#include <bitset>
//#include <numeric>
//#include <list>
//#include <iomanip>

#if __cplusplus >= 201103L
#include <array>
#include <tuple>
#include <initializer_list>
#include <unordered_set>
#include <unordered_map>
#include <forward_list>

#define cauto const auto&
#else

#endif

using namespace std;


namespace{
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
    v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
    stringstream ss;
    ss << f;
    ss >> t;
}


#define reep(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) reep((i),0,(n))
#define ALL(v) (v).begin(),(v).end()
#define PB push_back
#define F first
#define S second
#define mkp make_pair
#define RALL(v) (v).rbegin(),(v).rend()


#define MOD 1000000007LL
#define EPS 1e-8
static const int INF=1<<24;


typedef complex<double> P;
typedef const P &rP;
typedef pair<P,P> seg;
//naiseki
double dot(rP a, rP b){
    return real(a) * real(b) + imag(a) * imag(b);
}
//gaiseki
double cross(rP a, rP b){
    return real(a) * imag(b) - imag(a) * real(b);
}
bool intersectSP(P a,P b, const P &p) {
  return abs(a-p)+abs(b-p)-abs(b-a) < EPS; // triangle inequality
}
P projection(P a,P b, const P &p) {
  double t = dot(p-a, a-b) / norm(a-b);
  return a + t*(a-b);
}
double distanceSP(P a,P b, const P &p) {
  const P r = projection(a,b, p);
  if (intersectSP(a,b, r)) return abs(r - p);
  return min(abs(a - p), abs(b - p));
}
bool foo(P a,P b,P c,P d){
	P aa=a-c,ar=d-a;
	P bb=b-a,br=d-b;
	P cc=c-b,cr=d-c;
	double a2=dot(aa,ar),b2=dot(bb,br),c2=dot(cc,cr);
	if(a2>EPS&&b2>EPS&&c2>EPS) return true;
	if(a2<-EPS&&b2<-EPS&&c2<-EPS) return true;
	return false;
}
void mainmain(){
	int r;
	double x,y;
	while(cin>>x>>y,x||y){
		// cout<<x<<" "<<y<<endl;
		vector<P> z;
		z.PB(P(x,y));
		rep(i,3){
			cin>>x>>y;
			z.PB(P(x,y));
		}
		cin>>r;
		// cout<<r<<endl;
		bool f=true;
		rep(i,3){
			double t=distanceSP(z[i%3],z[(i+1)%3],z[3]);
			// cout<<t<<endl;
			if(t<r){
				// cout<<real(z[i%3])<<" "<<imag(z[(i+1)%3])<<endl;
				f=false;
			}
		}
		if(f&&foo(z[0],z[1],z[2],z[3])){
			cout<<"a\n";
			continue;
		}
		else if(r>abs(z[0]-z[3])&&r>abs(z[1]-z[3])&&r>abs(z[2]-z[3])){
			cout<<"b\n";
		}
		else if(r>abs(z[0]-z[3])||r>abs(z[1]-z[3])||r>abs(z[2]-z[3])){
			cout<<"c\n";
		}
		else cout<<"d\n";	
	}
}



}
main() try{
    mainmain();
}
catch(...){
}