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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: B = None
        self.y: H = None
        self.r: A = None
        self.w: B = None
        self.u: H = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: B = None
        self.y: H = None
        self.r: A = None
        self.w: B = None
        self.u: H = None
        self.z: H = None
        self.txt = txt

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

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

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