class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.r: B = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: B = None
        self.w: E = None
        self.x: G = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: D = None
        self.p: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.o: D = None
        self.t: D = None
        self.p: B = None
        self.txt = txt

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

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

j.o = d
j.w = d
j.x = b
j.r = m
m.z = e
m.v = d
m.t = d
m.r = k
m.q = k
m.w = b
m.x = a
d.v = c
d.r = e
d.w = k
d.x = a
d.o = a
b.o = d
b.t = k
b.y = k
b.p = c
b.r = a
b.v = a
b.q = j
i.x = m
i.q = m
i.y = b
i.p = e
c.x = e
c.p = e
c.r = d
c.o = b
c.t = b
a.p = j
a.s = k
a.x = k
a.z = b
a.t = c
a.y = d
h.p = j
h.s = k
h.x = k
h.z = b
h.t = c
h.y = d
k.x = e
k.p = e
k.q = e
k.y = b
e.z = m
e.v = d
e.t = d
e.r = k
e.q = i
e.w = b
e.x = a
assert h.t.t.o.v.x.w.o.w.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.r: B = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: B = None
        self.w: E = None
        self.x: G = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: D = None
        self.p: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.o: D = None
        self.t: D = None
        self.p: B = None
        self.txt = txt

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

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

j.o = d
j.w = d
j.x = b
j.r = m
m.z = e
m.v = d
m.t = d
m.r = k
m.q = k
m.w = b
m.x = a
d.v = c
d.r = e
d.w = k
d.x = a
d.o = a
b.o = d
b.t = k
b.y = k
b.p = c
b.r = a
b.v = a
b.q = j
i.x = m
i.q = m
i.y = b
i.p = e
c.x = e
c.p = e
c.r = d
c.o = b
c.t = b
a.p = j
a.s = k
a.x = k
a.z = b
a.t = c
a.y = d
h.p = j
h.s = k
h.x = k
h.z = b
h.t = c
h.y = d
k.x = e
k.p = e
k.q = e
k.y = b
e.z = m
e.v = d
e.t = d
e.r = k
e.q = i
e.w = b
e.x = a
assert h.t.t.o.v.x.w.o.w.x.txt == "e"