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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: E = None
        self.p: G = None
        self.o: D = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: I = None
        self.t: B = None
        self.w: H = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.q: B = None
        self.w: I = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: E = None
        self.p: G = None
        self.o: D = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: I = None
        self.t: B = None
        self.w: H = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: A = None
        self.q: B = None
        self.w: I = None
        self.t: E = None
        self.txt = txt

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

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