class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: B = None
        self.z: G = None
        self.s: F = None
        self.v: G = None
        self.p: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.s: F = None
        self.p: F = None
        self.y: G = None
        self.o: F = None
        self.t: H = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.q: F = None
        self.z: A = None
        self.txt = txt

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

i.t = n
i.r = k
i.z = g
i.v = g
i.s = e
i.p = l
k.w = j
n.w = e
l.r = b
l.t = b
l.v = n
l.s = e
l.p = e
l.o = e
l.y = g
l.z = a
a.s = b
a.o = n
e.z = i
g.u = b
b.s = e
b.v = g
j.u = l
j.p = e
j.q = e
j.z = i
assert e.z.z.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: B = None
        self.z: G = None
        self.s: F = None
        self.v: G = None
        self.p: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.s: F = None
        self.p: F = None
        self.y: G = None
        self.o: F = None
        self.t: H = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.q: F = None
        self.z: A = None
        self.txt = txt

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

i.t = n
i.r = k
i.z = g
i.v = g
i.s = e
i.p = l
k.w = j
n.w = e
l.r = b
l.t = b
l.v = n
l.s = e
l.p = e
l.o = e
l.y = g
l.z = a
a.s = b
a.o = n
e.z = i
g.u = b
b.s = e
b.v = g
j.u = l
j.p = e
j.q = e
j.z = i
assert e.z.z.u.s.txt == "e"