import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BOARD)
GPIO.setup(16, GPIO.IN, pull_up_down = GPIO.PUD_DOWN)
GPIO.setup(18, GPIO.IN, pull_up_down = GPIO.PUD_UP)

def sestnactka(channel):
	print("Sestnactka - Button "), channel

def osmnactka(channel):
	print("Osmnactka - Button "), channel 

GPIO.add_event_detect(16, GPIO.RISING, callback=sestnactka, bouncetime=300)
GPIO.add_event_detect(18, GPIO.FALLING, callback=osmnactka, bouncetime=300)

while True:

	print time.ctime()
	time.sleep(2)

GPIO.cleanup()
