class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.o: B = None
        self.z: E = None
        self.t: H = None
        self.q: B = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: E = None
        self.o: C = None
        self.r: I = None
        self.z: H = None
        self.u: C = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: H = None
        self.r: A = None
        self.z: G = None
        self.y: H = None
        self.p: I = None
        self.q: E = None
        self.o: C = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: C = None
        self.y: B = None
        self.t: D = None
        self.z: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.o: F = None
        self.p: I = None
        self.q: A = None
        self.y: F = None
        self.txt = txt

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

k = A("k")
a = B("a")
e = C("e")
l = D("l")
h = E("h")
f = F("f")
j = G("j")
m = H("m")
n = I("n")

k.x = f
k.y = h
k.z = h
k.o = a
k.q = a
k.t = m
k.p = m
a.t = e
a.o = e
a.u = e
a.p = h
a.y = h
a.r = n
a.z = m
e.r = n
l.w = e
l.o = e
l.u = m
l.y = m
l.r = k
l.s = k
l.z = j
l.p = n
l.q = h
h.u = n
h.q = e
h.y = a
h.t = l
h.z = f
f.x = l
f.z = j
f.t = a
j.s = h
j.u = m
m.w = l
m.s = f
m.o = f
m.y = f
m.p = n
m.q = k
n.s = a
n.v = f
n.z = m
n.q = h
assert e.r.s.y.t.q.t.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: E = None
        self.o: B = None
        self.z: E = None
        self.t: H = None
        self.q: B = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: E = None
        self.o: C = None
        self.r: I = None
        self.z: H = None
        self.u: C = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: H = None
        self.r: A = None
        self.z: G = None
        self.y: H = None
        self.p: I = None
        self.q: E = None
        self.o: C = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: C = None
        self.y: B = None
        self.t: D = None
        self.z: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.o: F = None
        self.p: I = None
        self.q: A = None
        self.y: F = None
        self.txt = txt

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

k = A("k")
a = B("a")
e = C("e")
l = D("l")
h = E("h")
f = F("f")
j = G("j")
m = H("m")
n = I("n")

k.x = f
k.y = h
k.z = h
k.o = a
k.q = a
k.t = m
k.p = m
a.t = e
a.o = e
a.u = e
a.p = h
a.y = h
a.r = n
a.z = m
e.r = n
l.w = e
l.o = e
l.u = m
l.y = m
l.r = k
l.s = k
l.z = j
l.p = n
l.q = h
h.u = n
h.q = e
h.y = a
h.t = l
h.z = f
f.x = l
f.z = j
f.t = a
j.s = h
j.u = m
m.w = l
m.s = f
m.o = f
m.y = f
m.p = n
m.q = k
n.s = a
n.v = f
n.z = m
n.q = h
assert e.r.s.y.t.q.t.txt == "l"