class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: D = None
        self.w: D = None
        self.z: H = None
        self.o: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: H = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: G = None
        self.r: E = None
        self.v: H = None
        self.t: H = None
        self.x: I = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: G = None
        self.o: B = None
        self.s: F = None
        self.t: D = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: G = None
        self.o: C = None
        self.w: E = None
        self.v: B = None
        self.t: I = None
        self.y: F = None
        self.z: D = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: H = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: G = None
        self.r: E = None
        self.v: H = None
        self.t: H = None
        self.x: I = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: G = None
        self.o: B = None
        self.s: F = None
        self.t: D = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: G = None
        self.o: C = None
        self.w: E = None
        self.v: B = None
        self.t: I = None
        self.y: F = None
        self.z: D = None
        self.s: F = None
        self.txt = txt

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

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