class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: D = None
        self.q: D = None
        self.p: H = None
        self.z: F = None
        self.y: F = None
        self.t: B = None
        self.o: J = None
        self.v: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: D = None
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: G = None
        self.y: A = None
        self.s: G = None
        self.r: D = None
        self.t: E = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: G = None
        self.p: H = None
        self.o: B = None
        self.z: C = None
        self.t: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: D = None
        self.p: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: G = None
        self.y: A = None
        self.s: G = None
        self.r: D = None
        self.t: E = None
        self.q: F = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: G = None
        self.p: H = None
        self.o: B = None
        self.z: C = None
        self.t: G = None
        self.txt = txt

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

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