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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: I = None
        self.r: H = None
        self.q: I = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: H = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: C = None
        self.q: J = None
        self.t: C = None
        self.x: D = None
        self.v: E = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: B = None
        self.v: G = None
        self.u: A = None
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: B = None
        self.r: C = None
        self.q: F = None
        self.z: D = None
        self.p: C = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: B = None
        self.txt = txt

c = A("c")
f = B("f")
j = C("j")
a = D("a")
e = E("e")
g = F("g")
k = G("k")
n = H("n")
h = I("h")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: I = None
        self.r: H = None
        self.q: I = None
        self.o: E = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: H = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: C = None
        self.q: J = None
        self.t: C = None
        self.x: D = None
        self.v: E = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: B = None
        self.v: G = None
        self.u: A = None
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: B = None
        self.r: C = None
        self.q: F = None
        self.z: D = None
        self.p: C = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: B = None
        self.txt = txt

c = A("c")
f = B("f")
j = C("j")
a = D("a")
e = E("e")
g = F("g")
k = G("k")
n = H("n")
h = I("h")
l = J("l")

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