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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: D = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: I = None
        self.x: E = None
        self.q: F = None
        self.p: F = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: C = None
        self.v: D = None
        self.o: H = None
        self.z: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: E = None
        self.x: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: D = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: I = None
        self.x: E = None
        self.q: F = None
        self.p: F = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: C = None
        self.v: D = None
        self.o: H = None
        self.z: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: E = None
        self.x: F = None
        self.txt = txt

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

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