class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.y: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: A = None
        self.y: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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