class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: I = None
        self.p: H = None
        self.z: C = None
        self.r: D = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: F = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.w: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: E = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: F = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.w: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: E = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.z: A = None
        self.txt = txt

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

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