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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.p: J = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: H = None
        self.s: H = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: D = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.p: J = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: H = None
        self.s: H = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: D = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

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

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

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

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