class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: A = None
        self.txt = txt

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

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

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