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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: D = None
        self.o: E = None
        self.u: D = None
        self.x: A = None
        self.q: E = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: I = None
        self.u: D = None
        self.w: H = None
        self.t: F = None
        self.q: F = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: H = None
        self.o: I = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: D = None
        self.o: E = None
        self.u: D = None
        self.x: A = None
        self.q: E = None
        self.s: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: I = None
        self.u: D = None
        self.w: H = None
        self.t: F = None
        self.q: F = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: H = None
        self.o: I = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

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

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