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

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: C = None
        self.y: F = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.t: C = None
        self.w: E = None
        self.txt = txt

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

f = A("f")
a = B("a")
j = C("j")
g = D("g")
d = E("d")
b = F("b")
e = G("e")
n = D("n")
c = E("c")
i = D("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: C = None
        self.y: F = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.t: C = None
        self.w: E = None
        self.txt = txt

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

f = A("f")
a = B("a")
j = C("j")
g = D("g")
d = E("d")
b = F("b")
e = G("e")
n = D("n")
c = E("c")
i = D("i")

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