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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: F = None
        self.x: G = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

i = A("i")
g = B("g")
n = C("n")
b = D("b")
d = E("d")
l = F("l")
e = G("e")
m = H("m")

i.u = l
i.s = n
i.q = m
g.v = d
g.r = l
g.x = e
g.t = n
n.y = b
b.v = g
b.t = i
d.x = l
d.t = l
l.s = b
l.v = e
e.s = n
e.w = g
e.r = b
e.y = l
m.z = b
assert n.y.t.u.s.t.s.y.t.txt == "
class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: C = None
        self.q: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: F = None
        self.x: G = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

i = A("i")
g = B("g")
n = C("n")
b = D("b")
d = E("d")
l = F("l")
e = G("e")
m = H("m")

i.u = l
i.s = n
i.q = m
g.v = d
g.r = l
g.x = e
g.t = n
n.y = b
b.v = g
b.t = i
d.x = l
d.t = l
l.s = b
l.v = e
e.s = n
e.w = g
e.r = b
e.y = l
m.z = b
assert n.y.t.u.s.t.s.y.t.txt == "i"