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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.o: I = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: I = None
        self.s: D = None
        self.t: I = None
        self.y: F = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.o: I = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: I = None
        self.s: D = None
        self.t: I = None
        self.y: F = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

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