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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: J = None
        self.r: I = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: H = None
        self.s: I = None
        self.u: I = None
        self.q: D = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.q: F = None
        self.z: C = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.t: C = None
        self.s: J = None
        self.r: A = None
        self.q: D = None
        self.u: C = None
        self.x: C = None
        self.p: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: G = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: J = None
        self.r: I = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: H = None
        self.s: I = None
        self.u: I = None
        self.q: D = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.q: F = None
        self.z: C = None
        self.p: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.t: C = None
        self.s: J = None
        self.r: A = None
        self.q: D = None
        self.u: C = None
        self.x: C = None
        self.p: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: G = None
        self.r: D = None
        self.txt = txt

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

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