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

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: I = None
        self.u: A = None
        self.s: G = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: H = None
        self.u: J = None
        self.r: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.o: A = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.w: E = None
        self.x: I = None
        self.v: J = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: D = None
        self.u: D = None
        self.t: A = None
        self.s: H = None
        self.w: E = None
        self.o: E = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.r: I = None
        self.z: I = None
        self.o: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

c = A("c")
i = B("i")
e = C("e")
l = D("l")
a = E("a")
g = F("g")
b = G("b")
j = H("j")
n = I("n")
m = J("m")

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

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: I = None
        self.u: A = None
        self.s: G = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: H = None
        self.u: J = None
        self.r: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: F = None
        self.o: A = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.w: E = None
        self.x: I = None
        self.v: J = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: D = None
        self.u: D = None
        self.t: A = None
        self.s: H = None
        self.w: E = None
        self.o: E = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: E = None
        self.r: I = None
        self.z: I = None
        self.o: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

c = A("c")
i = B("i")
e = C("e")
l = D("l")
a = E("a")
g = F("g")
b = G("b")
j = H("j")
n = I("n")
m = J("m")

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