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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: F = None
        self.s: C = None
        self.u: A = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: D = None
        self.x: E = None
        self.z: C = None
        self.r: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.u: G = None
        self.p: C = None
        self.w: A = None
        self.txt = txt

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

m = A("m")
c = B("c")
h = C("h")
g = D("g")
j = E("j")
e = F("e")
a = G("a")
i = D("i")
d = G("d")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: F = None
        self.s: C = None
        self.u: A = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: D = None
        self.x: E = None
        self.z: C = None
        self.r: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.u: G = None
        self.p: C = None
        self.w: A = None
        self.txt = txt

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

m = A("m")
c = B("c")
h = C("h")
g = D("g")
j = E("j")
e = F("e")
a = G("a")
i = D("i")
d = G("d")
l = C("l")

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