class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: F = None
        self.p: B = None
        self.w: I = None
        self.r: G = None
        self.y: B = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: C = None
        self.x: C = None
        self.s: C = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.w: D = None
        self.y: B = None
        self.o: G = None
        self.p: A = None
        self.v: I = None
        self.u: D = None
        self.s: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.txt = txt

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

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

m.s = g
m.o = j
m.p = l
m.y = l
m.t = l
m.w = k
m.r = a
l.t = a
l.v = h
l.x = h
l.s = h
l.u = k
h.s = f
h.z = g
h.p = g
h.t = d
h.u = d
h.w = a
h.x = m
h.q = c
d.z = k
d.v = k
d.q = a
d.o = a
d.w = g
d.u = g
d.s = g
d.y = l
d.p = m
c.p = m
c.q = m
c.o = l
c.r = l
c.u = f
j.o = d
a.o = k
a.y = f
a.w = g
a.s = h
a.u = j
f.v = j
f.p = h
k.s = g
k.w = g
k.z = c
g.z = k
g.v = k
g.q = a
g.o = a
g.w = d
g.u = d
g.s = d
g.y = l
g.p = m
assert k.z.o.v.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: F = None
        self.p: B = None
        self.w: I = None
        self.r: G = None
        self.y: B = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: C = None
        self.x: C = None
        self.s: C = None
        self.u: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.w: D = None
        self.y: B = None
        self.o: G = None
        self.p: A = None
        self.v: I = None
        self.u: D = None
        self.s: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.txt = txt

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

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

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