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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: F = None
        self.s: C = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: F = None
        self.v: H = None
        self.p: F = None
        self.r: G = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: D = None
        self.q: B = None
        self.t: D = None
        self.r: H = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: A = None
        self.o: G = None
        self.u: B = None
        self.q: H = None
        self.v: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: D = None
        self.p: C = None
        self.w: G = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: F = None
        self.s: C = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: F = None
        self.v: H = None
        self.p: F = None
        self.r: G = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: D = None
        self.q: B = None
        self.t: D = None
        self.r: H = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: A = None
        self.o: G = None
        self.u: B = None
        self.q: H = None
        self.v: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: D = None
        self.p: C = None
        self.w: G = None
        self.u: F = None
        self.o: D = None
        self.txt = txt

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

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