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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: D = None
        self.z: A = None
        self.x: C = None
        self.w: J = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: H = None
        self.q: A = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: G = None
        self.w: C = None
        self.s: A = None
        self.x: I = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: J = None
        self.o: E = None
        self.p: H = None
        self.s: F = None
        self.v: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: D = None
        self.z: A = None
        self.x: C = None
        self.w: J = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: H = None
        self.q: A = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: G = None
        self.w: C = None
        self.s: A = None
        self.x: I = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: A = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: J = None
        self.o: E = None
        self.p: H = None
        self.s: F = None
        self.v: J = None
        self.txt = txt

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

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

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