class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: B = None
        self.p: B = None
        self.s: E = None
        self.q: F = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: A = None
        self.o: D = None
        self.z: F = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

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

g = A("g")
k = B("k")
i = C("i")
j = D("j")
m = E("m")
h = F("h")
c = A("c")
e = D("e")
l = F("l")
n = B("n")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: A = None
        self.o: D = None
        self.z: F = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

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

g = A("g")
k = B("k")
i = C("i")
j = D("j")
m = E("m")
h = F("h")
c = A("c")
e = D("e")
l = F("l")
n = B("n")

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