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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: B = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.y: F = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: A = None
        self.p: A = None
        self.t: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.x: F = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
h = D("h")
d = E("d")
e = F("e")
j = G("j")
a = H("a")
n = B("n")

i.s = d
i.v = e
l.z = a
l.u = n
l.y = i
b.r = e
b.y = e
b.u = h
b.s = d
h.x = d
h.t = d
h.s = i
h.p = i
d.x = b
d.y = l
d.u = h
d.r = h
d.v = i
e.t = b
e.v = l
e.s = j
e.z = i
j.p = b
j.s = i
a.v = e
a.x = e
a.q = b
n.z = a
n.u = l
n.y = i
assert i.s.r.s.v.t.s.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: B = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.y: F = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: A = None
        self.p: A = None
        self.t: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.x: F = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
h = D("h")
d = E("d")
e = F("e")
j = G("j")
a = H("a")
n = B("n")

i.s = d
i.v = e
l.z = a
l.u = n
l.y = i
b.r = e
b.y = e
b.u = h
b.s = d
h.x = d
h.t = d
h.s = i
h.p = i
d.x = b
d.y = l
d.u = h
d.r = h
d.v = i
e.t = b
e.v = l
e.s = j
e.z = i
j.p = b
j.s = i
a.v = e
a.x = e
a.q = b
n.z = a
n.u = l
n.y = i
assert i.s.r.s.v.t.s.y.txt == "l"