class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: H = None
        self.p: I = None
        self.u: I = None
        self.x: D = None
        self.t: B = None
        self.y: I = None
        self.q: B = None
        self.r: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: A = None
        self.t: G = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: A = None
        self.x: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: A = None
        self.t: G = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: A = None
        self.x: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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