class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: C = None
        self.s: B = None
        self.r: H = None
        self.z: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.r: C = None
        self.o: A = None
        self.t: C = None
        self.w: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: A = None
        self.r: C = None
        self.o: A = None
        self.t: C = None
        self.w: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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