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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: E = None
        self.u: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: F = None
        self.u: H = None
        self.txt = txt

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

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

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