class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.s: B = None
        self.x: E = None
        self.q: H = None
        self.o: H = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: G = None
        self.o: H = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: B = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

j = A("j")
n = B("n")
m = C("m")
f = D("f")
i = E("i")
e = F("e")
k = G("k")
c = H("c")
d = C("d")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: G = None
        self.o: H = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: B = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

j = A("j")
n = B("n")
m = C("m")
f = D("f")
i = E("i")
e = F("e")
k = G("k")
c = H("c")
d = C("d")
l = C("l")

j.z = n
j.s = n
j.r = k
j.x = i
j.p = i
j.q = c
j.o = c
n.w = k
n.z = k
n.o = c
n.v = e
m.p = e
m.v = f
m.z = f
m.w = c
m.s = c
m.y = k
m.q = i
m.o = n
f.u = e
f.q = n
f.p = i
f.w = i
i.s = k
e.w = k
e.o = m
k.x = c
c.s = e
d.p = e
d.v = f
d.z = f
d.w = c
d.s = c
d.y = k
d.q = i
d.o = n
l.p = e
l.v = f
l.z = f
l.w = c
l.s = c
l.y = k
l.q = i
l.o = n
assert f.w.s.x.s.txt == "e"