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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: J = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: H = None
        self.y: H = None
        self.v: I = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: J = None
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: H = None
        self.y: H = None
        self.v: I = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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