class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: H = None
        self.u: F = None
        self.x: G = None
        self.y: I = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.z: A = None
        self.r: D = None
        self.o: C = None
        self.x: J = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.v: A = None
        self.t: D = None
        self.p: B = None
        self.r: G = None
        self.u: A = None
        self.s: B = None
        self.z: I = None
        self.x: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: G = None
        self.z: D = None
        self.p: A = None
        self.s: C = None
        self.q: H = None
        self.y: J = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: I = None
        self.r: C = None
        self.w: A = None
        self.p: J = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: F = None
        self.u: A = None
        self.x: I = None
        self.v: G = None
        self.w: F = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: D = None
        self.q: D = None
        self.t: C = None
        self.z: I = None
        self.r: A = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

l = A("l")
g = B("g")
h = C("h")
b = D("b")
k = E("k")
c = F("c")
m = G("m")
e = H("e")
n = I("n")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.z: A = None
        self.r: D = None
        self.o: C = None
        self.x: J = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.v: A = None
        self.t: D = None
        self.p: B = None
        self.r: G = None
        self.u: A = None
        self.s: B = None
        self.z: I = None
        self.x: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: G = None
        self.z: D = None
        self.p: A = None
        self.s: C = None
        self.q: H = None
        self.y: J = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: I = None
        self.r: C = None
        self.w: A = None
        self.p: J = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: F = None
        self.u: A = None
        self.x: I = None
        self.v: G = None
        self.w: F = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: D = None
        self.q: D = None
        self.t: C = None
        self.z: I = None
        self.r: A = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

l = A("l")
g = B("g")
h = C("h")
b = D("b")
k = E("k")
c = F("c")
m = G("m")
e = H("e")
n = I("n")
d = J("d")

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