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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: C = None
        self.u: F = None
        self.q: A = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: F = None
        self.q: F = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: C = None
        self.u: F = None
        self.q: A = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: F = None
        self.q: F = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

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

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