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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: A = None
        self.p: A = None
        self.y: C = None
        self.t: A = None
        self.u: A = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.x: H = None
        self.u: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.x: G = None
        self.u: E = None
        self.s: J = None
        self.z: J = None
        self.q: E = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: G = None
        self.y: B = None
        self.q: C = None
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: A = None
        self.p: A = None
        self.y: C = None
        self.t: A = None
        self.u: A = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.x: H = None
        self.u: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.x: G = None
        self.u: E = None
        self.s: J = None
        self.z: J = None
        self.q: E = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: G = None
        self.y: B = None
        self.q: C = None
        self.o: A = None
        self.txt = txt

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

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