class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: B = None
        self.r: D = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: F = None
        self.p: G = None
        self.y: G = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: D = None
        self.y: C = None
        self.p: C = None
        self.w: H = None
        self.txt = txt

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

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

j = A("j")
f = B("f")
g = C("g")
m = D("m")
k = E("k")
h = F("h")
a = G("a")
i = H("i")
n = F("n")
e = F("e")

j.x = a
j.y = f
j.u = f
j.r = m
j.s = g
f.x = n
f.o = i
f.p = j
f.w = g
g.v = h
g.t = h
g.o = a
g.x = e
g.w = f
g.p = j
g.r = j
m.o = j
k.o = h
k.t = n
k.w = n
k.p = a
k.y = a
h.u = m
h.x = m
h.y = g
h.p = g
h.w = i
a.s = k
i.o = k
i.v = n
i.y = a
i.z = g
i.p = m
n.u = m
n.x = m
n.y = g
n.p = g
n.w = i
e.u = m
e.x = m
e.y = g
e.p = g
e.w = i
assert f.o.o.y.s.o.w.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: B = None
        self.r: D = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: F = None
        self.p: G = None
        self.y: G = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.x: D = None
        self.y: C = None
        self.p: C = None
        self.w: H = None
        self.txt = txt

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

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

j = A("j")
f = B("f")
g = C("g")
m = D("m")
k = E("k")
h = F("h")
a = G("a")
i = H("i")
n = F("n")
e = F("e")

j.x = a
j.y = f
j.u = f
j.r = m
j.s = g
f.x = n
f.o = i
f.p = j
f.w = g
g.v = h
g.t = h
g.o = a
g.x = e
g.w = f
g.p = j
g.r = j
m.o = j
k.o = h
k.t = n
k.w = n
k.p = a
k.y = a
h.u = m
h.x = m
h.y = g
h.p = g
h.w = i
a.s = k
i.o = k
i.v = n
i.y = a
i.z = g
i.p = m
n.u = m
n.x = m
n.y = g
n.p = g
n.w = i
e.u = m
e.x = m
e.y = g
e.p = g
e.w = i
assert f.o.o.y.s.o.w.p.txt == "m"