class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: C = None
        self.w: G = None
        self.y: C = None
        self.q: D = None
        self.u: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: G = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: G = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

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

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

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

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