class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: B = None
        self.z: F = None
        self.s: H = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.q: B = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: H = 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.s: F = None
        self.u: I = None
        self.y: E = None
        self.w: D = None
        self.z: F = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: B = None
        self.z: F = None
        self.s: H = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.q: B = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: H = 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.s: F = None
        self.u: I = None
        self.y: E = None
        self.w: D = None
        self.z: F = None
        self.r: A = None
        self.txt = txt

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

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

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