class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: C = None
        self.z: E = None
        self.q: G = None
        self.o: D = None
        self.s: E = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: A = None
        self.u: D = None
        self.q: H = None
        self.r: A = None
        self.v: G = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: E = None
        self.r: H = None
        self.w: B = None
        self.x: G = None
        self.z: A = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: E = None
        self.r: E = None
        self.o: H = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: D = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: A = None
        self.u: D = None
        self.q: H = None
        self.r: A = None
        self.v: G = None
        self.z: F = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: E = None
        self.r: H = None
        self.w: B = None
        self.x: G = None
        self.z: A = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: E = None
        self.r: E = None
        self.o: H = None
        self.q: E = None
        self.txt = txt

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

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

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