class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.z: I = None
        self.w: E = None
        self.t: F = None
        self.u: H = None
        self.y: H = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: E = None
        self.p: D = None
        self.w: C = None
        self.t: B = None
        self.x: I = None
        self.u: B = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: C = None
        self.y: F = None
        self.o: C = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: E = None
        self.p: D = None
        self.w: C = None
        self.t: B = None
        self.x: I = None
        self.u: B = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: C = None
        self.y: F = None
        self.o: C = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

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

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