class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: G = None
        self.v: F = None
        self.y: C = None
        self.x: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: F = None
        self.q: D = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: H = None
        self.w: H = None
        self.r: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: C = None
        self.w: B = None
        self.r: B = None
        self.x: D = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: F = None
        self.q: D = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: H = None
        self.w: H = None
        self.r: B = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: C = None
        self.w: B = None
        self.r: B = None
        self.x: D = None
        self.s: G = None
        self.txt = txt

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

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