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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.t: H = None
        self.z: A = None
        self.v: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.u: F = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.t: H = None
        self.z: A = None
        self.v: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.u: F = None
        self.z: C = None
        self.txt = txt

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

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