Spectral types of four binaries based on photometric observations