class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: I = None
        self.t: I = None
        self.r: C = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: E = None
        self.p: I = None
        self.v: J = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: G = None
        self.p: D = None
        self.u: G = None
        self.y: F = None
        self.r: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: E = None
        self.r: F = None
        self.u: E = None
        self.v: A = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: E = None
        self.p: I = None
        self.v: J = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: G = None
        self.p: D = None
        self.u: G = None
        self.y: F = None
        self.r: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: E = None
        self.r: F = None
        self.u: E = None
        self.v: A = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

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

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