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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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