class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: H = None
        self.p: B = None
        self.w: D = None
        self.y: G = None
        self.q: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: G = None
        self.u: H = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: G = None
        self.u: H = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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