class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: H = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.s: C = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.s: C = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

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

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

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