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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: I = None
        self.s: F = None
        self.u: F = None
        self.x: I = None
        self.p: I = None
        self.z: B = None
        self.t: C = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.x: C = None
        self.u: H = None
        self.t: B = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: I = None
        self.s: F = None
        self.u: F = None
        self.x: I = None
        self.p: I = None
        self.z: B = None
        self.t: C = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.x: C = None
        self.u: H = None
        self.t: B = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

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