class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: G = None
        self.x: B = None
        self.o: C = None
        self.r: B = None
        self.u: B = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.x: B = None
        self.p: B = None
        self.q: H = None
        self.v: A = None
        self.w: A = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: B = None
        self.s: C = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

n = A("n")
f = B("f")
j = C("j")
c = D("c")
a = E("a")
h = F("h")
k = G("k")
d = H("d")
e = B("e")

n.z = j
n.o = j
n.t = j
n.y = k
n.x = f
n.r = f
n.u = e
f.t = a
f.o = j
f.x = e
f.p = e
f.q = d
f.v = n
f.w = n
f.r = n
j.w = n
c.v = n
a.v = c
h.y = n
h.u = j
k.z = a
k.p = e
k.s = j
k.w = c
d.v = h
d.q = f
d.x = a
e.t = a
e.o = j
e.x = f
e.p = f
e.q = d
e.v = n
e.w = n
e.r = n
assert e.o.w.y.w.txt == "
class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: G = None
        self.x: B = None
        self.o: C = None
        self.r: B = None
        self.u: B = None
        self.t: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.x: B = None
        self.p: B = None
        self.q: H = None
        self.v: A = None
        self.w: A = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: B = None
        self.s: C = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

n = A("n")
f = B("f")
j = C("j")
c = D("c")
a = E("a")
h = F("h")
k = G("k")
d = H("d")
e = B("e")

n.z = j
n.o = j
n.t = j
n.y = k
n.x = f
n.r = f
n.u = e
f.t = a
f.o = j
f.x = e
f.p = e
f.q = d
f.v = n
f.w = n
f.r = n
j.w = n
c.v = n
a.v = c
h.y = n
h.u = j
k.z = a
k.p = e
k.s = j
k.w = c
d.v = h
d.q = f
d.x = a
e.t = a
e.o = j
e.x = f
e.p = f
e.q = d
e.v = n
e.w = n
e.r = n
assert e.o.w.y.w.txt == "c"