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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: H = None
        self.o: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: D = None
        self.y: G = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: E = None
        self.o: H = None
        self.s: C = None
        self.v: C = None
        self.q: F = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: I = None
        self.p: E = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.v: E = None
        self.u: A = None
        self.s: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: H = None
        self.o: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: D = None
        self.y: G = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: E = None
        self.o: H = None
        self.s: C = None
        self.v: C = None
        self.q: F = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: I = None
        self.p: E = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.v: E = None
        self.u: A = None
        self.s: D = None
        self.txt = txt

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

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