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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: H = None
        self.x: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.o: C = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

d = A("d")
e = B("e")
l = C("l")
m = D("m")
b = E("b")
g = F("g")
a = G("a")
h = H("h")
i = I("i")
f = F("f")

d.z = l
d.t = h
d.v = b
d.y = m
e.u = d
l.v = f
l.r = h
l.t = d
l.p = a
l.x = g
l.w = g
l.o = m
m.t = i
m.u = h
m.x = f
m.y = b
b.y = l
g.x = h
g.t = m
a.s = i
a.x = h
a.y = h
a.o = l
a.r = l
h.r = d
i.x = m
f.x = h
f.t = m
assert i.x.y.y.t.z.r.r.y.t.txt == "
class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: H = None
        self.v: E = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: H = None
        self.x: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.o: C = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

d = A("d")
e = B("e")
l = C("l")
m = D("m")
b = E("b")
g = F("g")
a = G("a")
h = H("h")
i = I("i")
f = F("f")

d.z = l
d.t = h
d.v = b
d.y = m
e.u = d
l.v = f
l.r = h
l.t = d
l.p = a
l.x = g
l.w = g
l.o = m
m.t = i
m.u = h
m.x = f
m.y = b
b.y = l
g.x = h
g.t = m
a.s = i
a.x = h
a.y = h
a.o = l
a.r = l
h.r = d
i.x = m
f.x = h
f.t = m
assert i.x.y.y.t.z.r.r.y.t.txt == "i"