class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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