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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.z: G = None
        self.x: E = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: D = None
        self.z: A = None
        self.s: H = None
        self.v: F = None
        self.x: B = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.u: H = None
        self.r: C = None
        self.p: D = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: A = None
        self.u: B = None
        self.v: E = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.w: A = None
        self.q: G = None
        self.z: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: A = None
        self.z: G = None
        self.x: E = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: D = None
        self.z: A = None
        self.s: H = None
        self.v: F = None
        self.x: B = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: B = None
        self.u: H = None
        self.r: C = None
        self.p: D = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: A = None
        self.u: B = None
        self.v: E = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.w: A = None
        self.q: G = None
        self.z: D = None
        self.txt = txt

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

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