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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: G = None
        self.s: A = None
        self.t: F = None
        self.p: I = None
        self.w: I = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: B = None
        self.r: A = None
        self.q: I = None
        self.t: H = None
        self.p: C = None
        self.o: I = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.s: E = None
        self.p: A = None
        self.q: B = None
        self.t: B = None
        self.y: D = None
        self.v: E = None
        self.o: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: G = None
        self.s: A = None
        self.t: F = None
        self.p: I = None
        self.w: I = None
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: B = None
        self.r: A = None
        self.q: I = None
        self.t: H = None
        self.p: C = None
        self.o: I = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.s: E = None
        self.p: A = None
        self.q: B = None
        self.t: B = None
        self.y: D = None
        self.v: E = None
        self.o: H = None
        self.txt = txt

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

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