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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: I = None
        self.t: H = None
        self.p: G = None
        self.w: A = None
        self.u: I = None
        self.y: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: H = None
        self.y: F = None
        self.w: E = None
        self.o: H = None
        self.s: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: I = None
        self.t: H = None
        self.p: G = None
        self.w: A = None
        self.u: I = None
        self.y: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: H = None
        self.y: F = None
        self.w: E = None
        self.o: H = None
        self.s: B = None
        self.txt = txt

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

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