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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: E = None
        self.q: A = None
        self.o: H = None
        self.x: B = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: E = None
        self.q: A = None
        self.o: H = None
        self.x: B = None
        self.y: A = None
        self.r: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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