class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: E = None
        self.y: C = None
        self.p: G = None
        self.o: C = None
        self.r: B = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: J = None
        self.t: I = None
        self.s: D = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: B = None
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: C = None
        self.u: D = None
        self.y: E = None
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: E = None
        self.y: C = None
        self.p: G = None
        self.o: C = None
        self.r: B = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: J = None
        self.t: I = None
        self.s: D = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: B = None
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: C = None
        self.u: D = None
        self.y: E = None
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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