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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.o: H = None
        self.t: E = None
        self.v: E = None
        self.x: H = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: B = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: C = None
        self.u: H = None
        self.w: E = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.y: E = None
        self.z: C = None
        self.t: D = None
        self.q: E = None
        self.w: B = None
        self.o: D = None
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: D = None
        self.z: I = None
        self.x: D = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: H = None
        self.t: C = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.o: H = None
        self.t: E = None
        self.v: E = None
        self.x: H = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: B = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: C = None
        self.u: H = None
        self.w: E = None
        self.y: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.y: E = None
        self.z: C = None
        self.t: D = None
        self.q: E = None
        self.w: B = None
        self.o: D = None
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: D = None
        self.z: I = None
        self.x: D = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: H = None
        self.t: C = None
        self.v: C = None
        self.txt = txt

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

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