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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: I = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: A = None
        self.u: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: I = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: A = None
        self.u: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: E = None
        self.txt = txt

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

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

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