class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: D = None
        self.x: G = None
        self.w: E = None
        self.p: E = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: E = None
        self.z: D = None
        self.o: D = None
        self.q: C = None
        self.v: F = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.t: A = None
        self.txt = txt

i = A("i")
j = B("j")
g = C("g")
k = D("k")
f = E("f")
c = F("c")
n = G("n")
h = G("h")
d = E("d")
a = F("a")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: D = None
        self.x: G = None
        self.w: E = None
        self.p: E = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: E = None
        self.z: D = None
        self.o: D = None
        self.q: C = None
        self.v: F = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.t: A = None
        self.txt = txt

i = A("i")
j = B("j")
g = C("g")
k = D("k")
f = E("f")
c = F("c")
n = G("n")
h = G("h")
d = E("d")
a = F("a")

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