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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: D = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: I = None
        self.z: I = None
        self.o: C = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.t: I = None
        self.x: F = None
        self.z: I = None
        self.w: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: C = None
        self.s: B = None
        self.u: A = None
        self.w: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: D = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: I = None
        self.z: I = None
        self.o: C = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.t: I = None
        self.x: F = None
        self.z: I = None
        self.w: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: C = None
        self.s: B = None
        self.u: A = None
        self.w: E = None
        self.txt = txt

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

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

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