class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: F = None
        self.s: B = None
        self.r: E = None
        self.w: D = None
        self.y: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: E = None
        self.q: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.w: E = None
        self.z: D = None
        self.x: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: E = None
        self.q: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.w: E = None
        self.z: D = None
        self.x: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.s: D = None
        self.txt = txt

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

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