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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.y: E = None
        self.w: A = None
        self.r: B = None
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

h = A("h")
n = B("n")
c = C("c")
b = D("b")
l = E("l")
j = F("j")
i = G("i")
d = H("d")

h.q = j
h.x = d
n.t = d
n.o = i
c.p = n
c.z = n
c.o = l
b.p = c
b.s = l
b.y = l
b.w = h
b.t = h
b.r = n
b.v = j
l.s = i
l.z = b
l.v = h
j.u = l
j.x = n
j.r = n
j.v = h
i.s = j
i.p = h
d.q = j
d.t = j
d.r = i
d.v = i
assert b.v.u.v.x.t.x.t.txt == "
class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: E = None
        self.y: E = None
        self.w: A = None
        self.r: B = None
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

h = A("h")
n = B("n")
c = C("c")
b = D("b")
l = E("l")
j = F("j")
i = G("i")
d = H("d")

h.q = j
h.x = d
n.t = d
n.o = i
c.p = n
c.z = n
c.o = l
b.p = c
b.s = l
b.y = l
b.w = h
b.t = h
b.r = n
b.v = j
l.s = i
l.z = b
l.v = h
j.u = l
j.x = n
j.r = n
j.v = h
i.s = j
i.p = h
d.q = j
d.t = j
d.r = i
d.v = i
assert b.v.u.v.x.t.x.t.txt == "d"