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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.o: D = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.x: C = None
        self.q: D = None
        self.o: G = None
        self.t: G = None
        self.r: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.o: D = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.x: C = None
        self.q: D = None
        self.o: G = None
        self.t: G = None
        self.r: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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