class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: G = None
        self.v: J = None
        self.y: E = None
        self.u: B = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: J = None
        self.u: G = None
        self.v: E = None
        self.q: A = None
        self.z: E = None
        self.s: A = None
        self.r: G = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: E = None
        self.v: G = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: I = None
        self.r: G = None
        self.u: D = None
        self.p: G = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: J = None
        self.u: G = None
        self.v: E = None
        self.q: A = None
        self.z: E = None
        self.s: A = None
        self.r: G = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.x: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: E = None
        self.v: G = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: I = None
        self.r: G = None
        self.u: D = None
        self.p: G = None
        self.v: B = None
        self.txt = txt

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

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