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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: A = None
        self.s: C = None
        self.u: A = None
        self.r: C = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: A = None
        self.s: C = None
        self.u: A = None
        self.r: C = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

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

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