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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

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