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

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

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

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

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

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

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

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

h = A("h")
d = B("d")
l = C("l")
i = D("i")
k = E("k")
a = F("a")
g = G("g")
f = H("f")
e = A("e")
m = A("m")

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

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

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

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

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

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

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

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

h = A("h")
d = B("d")
l = C("l")
i = D("i")
k = E("k")
a = F("a")
g = G("g")
f = H("f")
e = A("e")
m = A("m")

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