class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: I = None
        self.v: H = None
        self.t: F = None
        self.u: C = None
        self.y: H = None
        self.z: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: I = None
        self.u: G = None
        self.o: F = None
        self.t: I = None
        self.v: F = None
        self.x: F = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: H = None
        self.z: B = None
        self.q: I = None
        self.v: G = None
        self.x: G = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.y: F = None
        self.s: I = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: I = None
        self.t: A = None
        self.v: C = None
        self.y: I = None
        self.r: F = None
        self.u: A = None
        self.s: E = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: I = None
        self.u: G = None
        self.o: F = None
        self.t: I = None
        self.v: F = None
        self.x: F = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: H = None
        self.z: B = None
        self.q: I = None
        self.v: G = None
        self.x: G = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: F = None
        self.y: F = None
        self.s: I = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: I = None
        self.t: A = None
        self.v: C = None
        self.y: I = None
        self.r: F = None
        self.u: A = None
        self.s: E = None
        self.q: C = None
        self.txt = txt

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

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

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

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