class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: G = None
        self.p: B = None
        self.o: B = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: D = None
        self.y: I = None
        self.s: I = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.u: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: D = None
        self.y: I = None
        self.s: I = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.u: G = None
        self.txt = txt

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

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

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