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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: G = None
        self.z: H = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.x: C = None
        self.t: A = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: D = None
        self.u: G = None
        self.q: B = None
        self.x: A = None
        self.p: D = None
        self.r: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: G = None
        self.z: H = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.x: C = None
        self.t: A = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: D = None
        self.u: G = None
        self.q: B = None
        self.x: A = None
        self.p: D = None
        self.r: H = None
        self.txt = txt

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

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