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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: H = None
        self.p: F = None
        self.q: A = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: H = None
        self.p: F = None
        self.q: A = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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