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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: C = None
        self.r: F = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.p: H = None
        self.s: F = None
        self.x: F = None
        self.w: G = None
        self.y: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: C = None
        self.r: F = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.p: H = None
        self.s: F = None
        self.x: F = None
        self.w: G = None
        self.y: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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