class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: I = None
        self.q: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: A = None
        self.p: H = None
        self.t: H = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: C = None
        self.y: J = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: C = None
        self.u: B = None
        self.x: J = None
        self.o: J = None
        self.s: F = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: B = None
        self.r: C = None
        self.x: G = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: H = None
        self.w: G = None
        self.z: D = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: A = None
        self.p: H = None
        self.t: H = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: C = None
        self.y: J = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: C = None
        self.u: B = None
        self.x: J = None
        self.o: J = None
        self.s: F = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: B = None
        self.r: C = None
        self.x: G = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: H = None
        self.w: G = None
        self.z: D = None
        self.q: D = None
        self.txt = txt

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

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