class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: E = None
        self.p: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.u: E = None
        self.z: F = None
        self.txt = txt

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

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

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

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

i = A("i")
l = B("l")
j = C("j")
a = D("a")
e = E("e")
g = F("g")
m = G("m")
b = H("b")
k = E("k")
d = H("d")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.u: E = None
        self.z: F = None
        self.txt = txt

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

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

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

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

i = A("i")
l = B("l")
j = C("j")
a = D("a")
e = E("e")
g = F("g")
m = G("m")
b = H("b")
k = E("k")
d = H("d")

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