class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: J = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: A = None
        self.txt = txt

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

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