class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: G = None
        self.v: I = None
        self.y: B = None
        self.x: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: B = None
        self.o: F = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: A = None
        self.r: B = None
        self.x: G = None
        self.v: J = None
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: D = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: I = None
        self.q: G = None
        self.x: B = None
        self.s: F = None
        self.u: I = None
        self.r: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: B = None
        self.o: F = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: A = None
        self.r: B = None
        self.x: G = None
        self.v: J = None
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: D = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: I = None
        self.q: G = None
        self.x: B = None
        self.s: F = None
        self.u: I = None
        self.r: G = None
        self.txt = txt

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

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