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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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