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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: I = None
        self.s: C = None
        self.t: C = None
        self.z: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: I = None
        self.q: D = None
        self.x: C = None
        self.s: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.s: A = None
        self.r: D = None
        self.z: A = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.y: A = None
        self.w: A = None
        self.q: E = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: I = None
        self.s: C = None
        self.t: C = None
        self.z: G = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: I = None
        self.q: D = None
        self.x: C = None
        self.s: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.s: A = None
        self.r: D = None
        self.z: A = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: B = None
        self.y: A = None
        self.w: A = None
        self.q: E = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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

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

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