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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: D = None
        self.y: E = None
        self.x: D = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: A = None
        self.s: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: F = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.y: B = None
        self.x: G = None
        self.v: A = None
        self.u: C = None
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: D = None
        self.y: E = None
        self.x: D = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: A = None
        self.s: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: F = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.y: B = None
        self.x: G = None
        self.v: A = None
        self.u: C = None
        self.t: D = None
        self.txt = txt

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

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