class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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