class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.z: B = None
        self.s: B = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: F = None
        self.s: E = None
        self.t: E = None
        self.r: F = None
        self.v: C = None
        self.p: H = None
        self.u: E = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.w: B = None
        self.o: B = None
        self.z: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: I = None
        self.s: H = None
        self.x: A = None
        self.w: B = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: F = None
        self.t: H = None
        self.s: H = None
        self.q: F = None
        self.p: E = None
        self.r: H = None
        self.z: A = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: F = None
        self.s: E = None
        self.t: E = None
        self.r: F = None
        self.v: C = None
        self.p: H = None
        self.u: E = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.w: B = None
        self.o: B = None
        self.z: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: I = None
        self.s: H = None
        self.x: A = None
        self.w: B = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: F = None
        self.t: H = None
        self.s: H = None
        self.q: F = None
        self.p: E = None
        self.r: H = None
        self.z: A = None
        self.v: H = None
        self.txt = txt

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

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