class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: G = None
        self.z: F = None
        self.v: H = None
        self.u: G = None
        self.y: E = None
        self.x: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: G = None
        self.r: E = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: D = None
        self.q: G = None
        self.s: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: G = None
        self.r: E = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: D = None
        self.q: G = None
        self.s: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.txt = txt

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

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