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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: A = None
        self.z: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: I = None
        self.q: A = None
        self.u: B = None
        self.o: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: A = None
        self.z: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: I = None
        self.q: A = None
        self.u: B = None
        self.o: F = None
        self.txt = txt

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

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

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