class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: F = None
        self.v: D = None
        self.q: E = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.y: F = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: B = None
        self.w: A = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: D = None
        self.r: C = None
        self.w: C = None
        self.x: B = None
        self.v: A = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.y: F = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: B = None
        self.w: A = None
        self.r: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: D = None
        self.r: C = None
        self.w: C = None
        self.x: B = None
        self.v: A = None
        self.t: A = None
        self.txt = txt

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

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