class A:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.u: G = None
        self.q: H = None
        self.v: H = None
        self.r: H = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.r: C = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

k = A("k")
i = B("i")
g = C("g")
n = D("n")
e = E("e")
c = F("c")
b = G("b")
j = H("j")
m = A("m")

k.y = m
k.p = i
k.u = b
k.t = b
k.q = j
k.v = j
k.r = j
i.o = j
i.v = j
i.q = j
i.w = j
i.s = n
i.p = n
i.y = g
g.q = i
g.p = i
n.s = b
e.o = g
e.t = j
e.r = j
e.y = n
c.r = j
c.z = b
c.v = k
b.y = g
j.x = c
j.v = i
j.r = g
j.s = g
j.q = m
m.y = k
m.p = i
m.u = b
m.t = b
m.q = j
m.v = j
m.r = j
assert c.z.y.p.s.s.y.p.o.txt == "
class A:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.u: G = None
        self.q: H = None
        self.v: H = None
        self.r: H = None
        self.t: G = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.r: C = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

k = A("k")
i = B("i")
g = C("g")
n = D("n")
e = E("e")
c = F("c")
b = G("b")
j = H("j")
m = A("m")

k.y = m
k.p = i
k.u = b
k.t = b
k.q = j
k.v = j
k.r = j
i.o = j
i.v = j
i.q = j
i.w = j
i.s = n
i.p = n
i.y = g
g.q = i
g.p = i
n.s = b
e.o = g
e.t = j
e.r = j
e.y = n
c.r = j
c.z = b
c.v = k
b.y = g
j.x = c
j.v = i
j.r = g
j.s = g
j.q = m
m.y = k
m.p = i
m.u = b
m.t = b
m.q = j
m.v = j
m.r = j
assert c.z.y.p.s.s.y.p.o.txt == "j"