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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: D = None
        self.t: E = None
        self.s: D = None
        self.o: C = None
        self.r: H = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: D = None
        self.z: I = None
        self.o: B = None
        self.x: D = None
        self.s: C = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: D = None
        self.t: E = None
        self.s: D = None
        self.o: C = None
        self.r: H = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: D = None
        self.z: I = None
        self.o: B = None
        self.x: D = None
        self.s: C = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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