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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: F = None
        self.w: G = None
        self.y: E = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.o: D = None
        self.x: A = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.w: A = None
        self.z: B = None
        self.q: E = None
        self.s: B = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: F = None
        self.w: G = None
        self.y: E = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.o: D = None
        self.x: A = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.w: A = None
        self.z: B = None
        self.q: E = None
        self.s: B = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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