class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.p: D = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: C = None
        self.v: C = None
        self.z: C = None
        self.s: F = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: D = None
        self.z: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: E = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: C = None
        self.p: C = None
        self.t: A = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

f = A("f")
l = B("l")
e = C("e")
d = D("d")
i = E("i")
g = F("g")
c = D("c")
k = F("k")
j = B("j")

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: C = None
        self.v: C = None
        self.z: C = None
        self.s: F = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: D = None
        self.z: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: E = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: C = None
        self.p: C = None
        self.t: A = None
        self.o: F = None
        self.z: A = None
        self.txt = txt

f = A("f")
l = B("l")
e = C("e")
d = D("d")
i = E("i")
g = F("g")
c = D("c")
k = F("k")
j = B("j")

f.w = e
f.z = e
f.p = d
f.r = k
l.y = g
l.x = e
l.v = e
l.z = e
l.s = k
l.t = f
e.t = i
e.y = c
e.z = l
e.x = g
d.v = f
d.w = i
d.y = e
i.v = c
g.q = d
g.w = e
g.p = e
g.t = f
g.z = f
g.o = k
c.v = f
c.w = i
c.y = e
k.q = c
k.w = e
k.p = e
k.t = f
k.z = f
k.o = g
j.y = g
j.x = e
j.v = e
j.z = e
j.s = k
j.t = f
assert d.y.x.p.x.txt == "g"