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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.v: H = None
        self.z: D = None
        self.x: I = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.s: I = None
        self.r: B = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.v: H = None
        self.z: D = None
        self.x: I = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.s: I = None
        self.r: B = None
        self.o: E = None
        self.txt = txt

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

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

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