class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: E = None
        self.s: H = None
        self.p: I = None
        self.x: A = None
        self.v: G = None
        self.o: C = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.z: F = None
        self.o: I = None
        self.u: B = None
        self.q: F = None
        self.y: B = None
        self.p: H = None
        self.v: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: E = None
        self.t: H = None
        self.s: I = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.t: I = None
        self.x: G = None
        self.u: C = None
        self.w: C = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.z: F = None
        self.o: I = None
        self.u: B = None
        self.q: F = None
        self.y: B = None
        self.p: H = None
        self.v: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: E = None
        self.t: H = None
        self.s: I = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: D = None
        self.t: I = None
        self.x: G = None
        self.u: C = None
        self.w: C = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.x: E = None
        self.txt = txt

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

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