class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: D = None
        self.o: E = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: G = None
        self.t: D = None
        self.r: B = None
        self.z: C = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: G = None
        self.t: D = None
        self.r: B = None
        self.z: C = None
        self.s: A = None
        self.txt = txt

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

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

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