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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: E = None
        self.x: H = None
        self.p: B = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: E = None
        self.x: H = None
        self.p: B = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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