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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: A = None
        self.s: A = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: H = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: A = None
        self.s: A = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: H = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: E = None
        self.txt = txt

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

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

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