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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.x: A = None
        self.p: C = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.x: D = None
        self.o: H = None
        self.w: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: D = None
        self.u: A = None
        self.v: F = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.x: A = None
        self.p: C = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.x: D = None
        self.o: H = None
        self.w: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: D = None
        self.u: A = None
        self.v: F = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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