class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: F = None
        self.q: F = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: I = None
        self.v: I = None
        self.u: F = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.z: I = None
        self.t: H = None
        self.p: C = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: J = None
        self.o: H = None
        self.s: A = None
        self.q: I = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: J = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: F = None
        self.v: J = None
        self.y: A = None
        self.t: C = None
        self.z: D = None
        self.r: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: D = None
        self.t: J = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.q: E = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: I = None
        self.v: I = None
        self.u: F = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.z: I = None
        self.t: H = None
        self.p: C = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: J = None
        self.o: H = None
        self.s: A = None
        self.q: I = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: J = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: F = None
        self.v: J = None
        self.y: A = None
        self.t: C = None
        self.z: D = None
        self.r: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: D = None
        self.t: J = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.q: E = None
        self.z: D = None
        self.txt = txt

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

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