class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: B = None
        self.v: D = None
        self.p: C = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: G = None
        self.o: B = None
        self.q: I = None
        self.u: I = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: C = None
        self.q: H = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: G = None
        self.o: B = None
        self.q: I = None
        self.u: I = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: C = None
        self.q: H = None
        self.o: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: H = None
        self.txt = txt

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

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

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

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