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

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

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

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: D = None
        self.x: D = None
        self.r: A = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
c = C("c")
f = D("f")
d = E("d")
l = F("l")
n = A("n")
g = D("g")

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: D = None
        self.x: D = None
        self.r: A = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
c = C("c")
f = D("f")
d = E("d")
l = F("l")
n = A("n")
g = D("g")

h.s = l
h.z = d
h.y = f
h.t = a
h.o = c
a.r = g
c.s = n
c.o = f
f.o = g
f.v = g
f.x = g
f.u = g
f.r = h
f.t = a
d.o = l
d.v = n
l.u = c
n.s = l
n.z = d
n.y = f
n.t = a
n.o = c
g.o = f
g.v = f
g.x = f
g.u = f
g.r = n
g.t = a
assert f.t.r.x.u.r.z.v.txt == "n"