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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.p: G = None
        self.o: E = None
        self.x: E = None
        self.s: E = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.p: G = None
        self.o: E = None
        self.x: E = None
        self.s: E = None
        self.r: A = None
        self.txt = txt

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

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

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

j.x = i
j.p = n
j.v = g
k.o = g
k.t = g
k.u = g
k.s = b
k.z = b
d.x = n
d.u = g
n.x = j
l.u = d
l.o = d
l.z = d
l.p = i
l.t = k
i.t = g
i.z = n
i.p = b
i.o = l
i.x = l
i.s = l
i.r = j
b.o = i
b.r = i
b.t = l
b.p = l
b.u = k
b.s = k
b.w = n
g.s = n
g.t = l
assert l.p.z.x.v.t.txt == "l"