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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.q: I = None
        self.x: I = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: J = None
        self.p: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: B = None
        self.q: I = None
        self.x: I = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: J = None
        self.p: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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