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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: F = None
        self.v: C = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: H = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

g = A("g")
n = B("n")
e = C("e")
l = D("l")
f = E("f")
b = F("b")
j = G("j")
m = H("m")
i = D("i")

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: A = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: F = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: F = None
        self.v: C = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: H = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.r: D = None
        self.txt = txt

g = A("g")
n = B("n")
e = C("e")
l = D("l")
f = E("f")
b = F("b")
j = G("j")
m = H("m")
i = D("i")

g.v = m
g.s = b
g.t = b
g.p = e
g.y = n
g.q = n
g.o = n
n.t = i
n.s = g
n.z = f
e.z = b
e.q = b
e.u = n
l.u = g
l.z = b
l.q = b
l.v = e
f.w = j
f.u = j
f.t = m
b.q = n
b.w = f
j.w = e
m.p = l
m.u = g
m.r = i
i.u = g
i.z = b
i.q = b
i.v = e
assert j.w.u.t.u.p.u.s.txt == "g"