class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.t: G = None
        self.o: D = None
        self.y: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: B = None
        self.y: B = None
        self.o: C = None
        self.w: C = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: B = None
        self.y: B = None
        self.o: C = None
        self.w: C = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

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

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

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