class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: C = None
        self.r: E = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: E = None
        self.s: E = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.z: G = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: B = None
        self.y: H = None
        self.v: C = None
        self.w: B = None
        self.x: A = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: B = None
        self.q: H = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: A = None
        self.txt = txt

f = A("f")
k = B("k")
b = C("b")
h = D("h")
c = E("c")
a = F("a")
g = G("g")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: E = None
        self.s: E = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.z: G = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: B = None
        self.y: H = None
        self.v: C = None
        self.w: B = None
        self.x: A = None
        self.r: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: B = None
        self.q: H = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: A = None
        self.txt = txt

f = A("f")
k = B("k")
b = C("b")
h = D("h")
c = E("c")
a = F("a")
g = G("g")
l = H("l")

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