class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: F = None
        self.z: C = None
        self.y: B = None
        self.w: E = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.y: G = None
        self.p: G = None
        self.q: E = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: F = None
        self.z: D = None
        self.y: D = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: D = None
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.y: G = None
        self.p: G = None
        self.q: E = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: F = None
        self.z: D = None
        self.y: D = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: D = None
        self.t: D = None
        self.txt = txt

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

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