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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: D = None
        self.r: F = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: F = None
        self.r: G = None
        self.w: E = None
        self.q: E = None
        self.u: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: C = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
g = B("g")
n = C("n")
i = D("i")
e = E("e")
f = F("f")
a = G("a")
h = H("h")
k = A("k")
l = E("l")

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: D = None
        self.r: F = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: F = None
        self.r: G = None
        self.w: E = None
        self.q: E = None
        self.u: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: C = None
        self.u: D = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: F = None
        self.txt = txt

b = A("b")
g = B("g")
n = C("n")
i = D("i")
e = E("e")
f = F("f")
a = G("a")
h = H("h")
k = A("k")
l = E("l")

b.v = h
b.s = i
b.y = k
g.q = a
g.u = a
g.z = i
g.r = f
n.x = g
i.z = g
i.u = g
i.v = f
i.r = a
i.p = a
i.w = l
i.q = e
i.o = e
e.u = h
e.q = k
f.z = h
f.t = n
f.u = i
f.s = l
a.v = h
a.p = h
a.q = h
a.y = f
a.t = k
h.t = e
h.u = f
k.v = h
k.s = i
k.y = b
l.u = h
l.q = b
assert e.u.u.z.u.z.u.t.x.q.p.txt == "h"