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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: C = None
        self.p: G = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.y: I = None
        self.p: D = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: F = None
        self.p: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: C = None
        self.p: G = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.y: I = None
        self.p: D = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: F = None
        self.p: F = None
        self.txt = txt

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

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

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