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

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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