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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: D = None
        self.t: E = None
        self.s: J = None
        self.p: J = None
        self.w: G = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.z: J = None
        self.u: F = None
        self.q: D = None
        self.t: A = None
        self.o: B = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: H = None
        self.z: B = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: B = None
        self.u: A = None
        self.o: B = None
        self.x: D = None
        self.v: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: E = None
        self.s: B = None
        self.y: J = None
        self.r: D = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: D = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: A = None
        self.t: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: D = None
        self.t: E = None
        self.s: J = None
        self.p: J = None
        self.w: G = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.z: J = None
        self.u: F = None
        self.q: D = None
        self.t: A = None
        self.o: B = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: H = None
        self.z: B = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: B = None
        self.u: A = None
        self.o: B = None
        self.x: D = None
        self.v: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: E = None
        self.s: B = None
        self.y: J = None
        self.r: D = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: D = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: A = None
        self.t: C = None
        self.txt = txt

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

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