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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: G = None
        self.s: C = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: H = None
        self.v: D = None
        self.s: B = None
        self.r: E = None
        self.t: H = None
        self.u: G = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: G = None
        self.s: C = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: H = None
        self.v: D = None
        self.s: B = None
        self.r: E = None
        self.t: H = None
        self.u: G = None
        self.z: B = None
        self.txt = txt

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

h.o = c
h.t = c
h.q = k
h.r = l
j.v = l
k.t = j
k.o = l
e.s = g
e.w = l
l.y = m
l.s = m
l.z = g
l.o = j
l.q = j
l.x = e
d.o = l
d.t = m
d.s = k
d.y = n
m.u = e
m.z = h
g.w = j
g.s = j
g.z = j
g.o = c
g.t = c
g.v = e
g.r = l
g.u = m
n.t = j
n.o = l
c.w = j
c.s = j
c.z = j
c.o = g
c.t = g
c.v = e
c.r = l
c.u = m
assert j.v.y.u.s.w.v.z.v.s.w.txt == "j"