class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: B = None
        self.s: I = None
        self.t: D = None
        self.w: G = None
        self.o: B = None
        self.r: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.s: I = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: H = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: H = None
        self.s: I = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: H = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

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