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

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

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: E = None
        self.txt = txt

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

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

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

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

b = A("b")
g = B("g")
m = C("m")
j = D("j")
k = E("k")
d = F("d")
l = G("l")
c = H("c")
e = E("e")

b.y = l
b.z = c
b.t = g
g.w = m
g.t = j
m.s = b
m.v = b
m.u = d
m.r = e
m.o = c
m.p = j
m.t = j
m.x = g
j.o = l
j.p = e
k.r = l
k.u = l
k.o = m
k.w = m
k.s = e
k.v = e
k.q = d
k.t = j
d.y = m
d.u = c
l.y = m
l.p = g
l.t = d
c.s = e
c.v = k
c.r = k
c.u = b
c.t = d
c.z = l
e.r = l
e.u = l
e.o = m
e.w = m
e.s = k
e.v = k
e.q = d
e.t = j
assert b.z.z.t.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: H = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: E = None
        self.txt = txt

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

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

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

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

b = A("b")
g = B("g")
m = C("m")
j = D("j")
k = E("k")
d = F("d")
l = G("l")
c = H("c")
e = E("e")

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