class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: H = None
        self.p: E = None
        self.y: F = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: H = None
        self.s: E = None
        self.r: A = None
        self.x: C = None
        self.o: G = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: C = None
        self.r: D = None
        self.q: G = None
        self.x: E = None
        self.p: B = None
        self.v: I = None
        self.y: A = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: H = None
        self.s: E = None
        self.r: A = None
        self.x: C = None
        self.o: G = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: C = None
        self.r: D = None
        self.q: G = None
        self.x: E = None
        self.p: B = None
        self.v: I = None
        self.y: A = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

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