class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.v: F = None
        self.r: G = None
        self.s: C = None
        self.u: B = None
        self.q: C = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: C = None
        self.v: F = None
        self.r: G = None
        self.s: C = None
        self.u: B = None
        self.q: C = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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