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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: A = None
        self.v: A = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.v: D = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: D = None
        self.v: D = None
        self.q: D = None
        self.y: B = None
        self.p: D = None
        self.txt = txt

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

n = A("n")
g = B("g")
k = C("k")
i = D("i")
a = E("a")
f = F("f")
c = D("c")
j = A("j")

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: A = None
        self.v: A = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.v: D = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: D = None
        self.v: D = None
        self.q: D = None
        self.y: B = None
        self.p: D = None
        self.txt = txt

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

n = A("n")
g = B("g")
k = C("k")
i = D("i")
a = E("a")
f = F("f")
c = D("c")
j = A("j")

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