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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

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

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