buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
using namespace std;
typedef long long ll;
int main() {
ll n;
n %= 10;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
else
co... | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
n %= 10;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
n %= 10;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 && n == 1 && n == 6 && n == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
n %= 10;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 || n == 1 || n == 6 || n == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
} | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
int b = a.size();
int c = a.at(b - 1);
if (c == '3') {
cout << "hon" << endl;
} else if (c == '0' || c == '1' || c == '6' || c == '8') {
cout << "pon" << endl;
} else {
cout << "bon" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
int b = a.size();
int c = a.at(b - 1);
if (c == '3') {
cout << "bon" << endl;
} else if (c == '0' || c == '1' || c == '6' || c == '8') {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
hon = [2, 4, 5, 7, 9]
pon = [1, 6, 8]
n = gets.to_i
if hon.count(n % 10) > 0
puts "hon"
elsif pon.count(n % 10) > 0
puts "pon"
else
puts "bon"
end | hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
n = gets.to_i
if hon.count(n % 10) > 0
puts "hon"
elsif pon.count(n % 10) > 0
puts "pon"
else
puts "bon"
end | [["+", 36, 36, 0, 493, 0, 662, 12, 516, 0, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 516, 0, 21]] | 4 | 63 |
t=int(input())
a=[2,4,5,7,9]
x=n%10
if x in a:
print("hon")
elif x==3:
print("bon")
else:
print("pon") | n=int(input())
a=[2,4,5,7,9]
x=n%10
if x in a:
print("hon")
elif x==3:
print("bon")
else:
print("pon")
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 56 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int N;
cin >> N;
if (N & 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) {
cout << "pon" << endl;
} else if (N % 10 == 3) {
cout << "bon" << endl;
} else
cout << "hon" << endl;
r... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) {
cout << "pon" << endl;
} else if (N % 10 == 3) {
cout << "bon" << endl;
} else
cout << "hon" << endl;
r... | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 67], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109]] | 1 | 92 |
# coding: utf-8
# Your code here!
n = input()
# print(n)
# print(n[-1])
# 2, 4, 5, 7, 9
if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '8':
print('hon')
# 0, 1, 6, 8
if n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
# 3
if n[-1] == '3':
print('bo... | # coding: utf-8
# Your code here!
n = input()
# print(n)
# print(n[-1])
# 2, 4, 5, 7, 9
if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '9':
print('hon')
# 0, 1, 6, 8
if n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
# 3
if n[-1] == '3':
print('bo... | [["-", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6]] | 5 | 133 |
N=input()
n=N[-1:]
if(n==3):
print("bon")
elif(n==0):
print("pon")
elif(n==1):
print("pon")
elif(n==6):
print("pon")
elif(n==8):
print("pon")
else:
print("hon") | N=input()
n=N[-1:]
n=int(n)
if(n==3):
print("bon")
elif(n==0):
print("pon")
elif(n==1):
print("pon")
elif(n==6):
print("pon")
elif(n==8):
print("pon")
else:
print("hon") | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 86 |
n = int(input())
if n in [2,4,5,7,9]:
print('hon')
elif n in [0,1,6,8]:
print('pon')
else:
print('bon') | n = int(input()[-1])
if n in [2,4,5,7,9]:
print('hon')
elif n in [0,1,6,8]:
print('pon')
else:
print('bon')
| [["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 70], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 73]] | 5 | 56 |
a=[2,4,5,7,9]
#hon
b = [0,1,6,8]
#pon
n = int(input())//10
if n in a:
print("hon")
elif n in b:
print("pon")
else:
print("bon") | a=[2,4,5,7,9]
#hon
b = [0,1,6,8]
#pon
n = int(input())%10
if n in a:
print("hon")
elif n in b:
print("pon")
else:
print("bon")
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109]] | 5 | 66 |
n = int(input())
n = n%10
if n == 2 or n == 5 or n == 5 or n == 7 or n == 9:
print('hon')
elif n == 1 or n == 6 or n == 0 or n == 8:
print('pon')
elif n == 3:
print('bon') | n = int(input())
n = n%10
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
print('hon')
elif n == 1 or n == 6 or n == 0 or n == 8:
print('pon')
elif n == 3:
print('bon') | [["-", 31, 679, 31, 679, 31, 679, 12, 666, 0, 612], ["+", 31, 679, 31, 679, 31, 679, 12, 666, 0, 612]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string N;
cin >> N;
reverse(N.begin(), N.end());
if (N.at(0) == 3) {
cout << "bon" << endl;
return 0;
}
if (N.at(0) == 6 || N.at(0) == 1 || N.at(0) == 0 || N.at(0) == 8) {
cout << "pon" << endl;
return 0;
} else {
cout << "hon... | #include <bits/stdc++.h>
using namespace std;
int main() {
string N;
cin >> N;
reverse(N.begin(), N.end());
if (N.at(0) == '3') {
cout << "bon" << endl;
return 0;
}
if (N.at(0) == '6' || N.at(0) == '1' || N.at(0) == '0' || N.at(0) == '8') {
cout << "pon" << endl;
return 0;
} else {
co... | [["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]] | 1 | 123 |
N = int(input()) % 10
a = ["pon","pon","hon","bon","hon","hon","pon","hon","hon","pon","hon"]
print(a[N]) | N = int(input()) % 10
a = ["pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"]
print(a[N])
| [["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654]] | 5 | 64 |
/*"Success isn't permanent, failure isn't fatal,
it's the courage to continue that
counts"*/
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
// typedef tree<int, null_t... | /*"Success isn't permanent, failure isn't fatal,
it's the courage to continue that
counts"*/
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
// typedef tree<int, null_t... | [["-", 31, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 125]] | 1 | 193 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int one = n % 10;
if (one == 3)
cout << "bon" << endl;
else if (one == 0 || one == 6 || one == 6 || one == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int one = n % 10;
if (one == 3)
cout << "bon" << endl;
else if (one == 0 || one == 1 || one == 6 || one == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| [["-", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 76 |
N=input()
num=int(N[-1])
print(num)
if num==3:
print("bon")
elif num==0 or num==1 or num==6 or num==8:
print("pon")
else:
print("hon") | N=input()
num=int(N[-1])
if num==3:
print("bon")
elif num==0 or num==1 or num==6 or num==8:
print("pon")
else:
print("hon") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
#include <bits/stdc++.h>
#define rep(i, s, n) for (int i = s; i < n; ++i)
#define drep(i, s, n) for (int i = n; i >= s; --i)
#define all(x) (x).begin(), (x).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define print(x) cout << (x) << endl
using namespace std;
typedef long long ll;
int gcd(int a, int b) {
if (a % b... | #include <bits/stdc++.h>
#define rep(i, s, n) for (int i = s; i < n; ++i)
#define drep(i, s, n) for (int i = n; i >= s; --i)
#define all(x) (x).begin(), (x).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define print(x) cout << (x) << endl
using namespace std;
typedef long long ll;
int gcd(int a, int b) {
if (a % b... | [["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]] | 1 | 434 |
N = gets.chomp
case N[-1]
when "2", "4", "5", "7", "9"
puts "hon"
when "0", "1", "6", "8"
puts "pon"
when "3"
puts "pbon"
end | N = gets.chomp
case N[-1]
when "2", "4", "5", "7", "9"
puts "hon"
when "0", "1", "6", "8"
puts "pon"
when "3"
puts "bon"
end | [["-", 8, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 749, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 64 |
s = input()
if s[-1] == "3":
print("bon")
elif s[-1] in [2,4,5,7,9]:
print("hon")
else:
print("pon") | s = input()
if s[-1] == "3":
print("bon")
elif s[-1] in ["2","4","5","7","9"]:
print("hon")
else:
print("pon") | [["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 654], ["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 655]] | 5 | 55 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 8 == 10)
cout << "pon" << endl;
else if (n % 10 == 3)
cout << "bon" << endl;
else
cout << "ho... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8)
cout << "pon" << endl;
else if (n % 10 == 3)
cout << "bon" << endl;
else
cout << "ho... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 93 |
N = input()
if N[len(N)-1] == 3:
print('bon')
elif N[len(N)-1] == 0 or N[len(N)-1] == 1 or N[len(N)-1] == 6 or N[len(N)-1] == 8:
print('pon')
else:
print('hon')
| N = input()
if N[len(N)-1] == '3':
print('bon')
elif N[len(N)-1] == '0' or N[len(N)-1] == '1' or N[len(N)-1] == '6' or N[len(N)-1] == '8':
print('pon')
else:
print('hon')
| [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1... | 5 | 87 |
def main():
n = list(input())[-1]
if n in [2, 4, 5, 7, 9]:
ans = 'hon'
elif n in [0, 1, 6, 8]:
ans = 'pon'
else:
ans = 'bon'
print(ans)
if __name__ == "__main__":
main()
| def main():
n = int(list(input())[-1])
if n in [2, 4, 5, 7, 9]:
ans = 'hon'
elif n in [0, 1, 6, 8]:
ans = 'pon'
else:
ans = 'bon'
print(ans)
if __name__ == "__main__":
main()
| [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 76 |
#input of int(split by space)
def get_i()
return gets.chomp.split(" ").map(&:to_i)
end
#input of float(split by space)
def get_f()
return gets.chomp.split(" ").map(&:to_f)
end
#input of string(split by space)
def get()
return gets.chomp.split(" ")
end
#input of string(split per one character)
def get_nsp()
retu... | #input of int(split by space)
def get_i()
return gets.chomp.split(" ").map(&:to_i)
end
#input of float(split by space)
def get_f()
return gets.chomp.split(" ").map(&:to_f)
end
#input of string(split by space)
def get()
return gets.chomp.split(" ")
end
#input of string(split per one character)
def get_nsp()
retu... | [["-", 31, 738, 31, 738, 12, 738, 12, 557, 0, 6], ["+", 31, 738, 31, 738, 12, 738, 12, 557, 0, 6]] | 4 | 299 |
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 367 |
"""
~~ Author : Bhaskar
~~ Dated : 16~05~2020
"""
import sys
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007
def IOE():
sys.stdin = open("input.txt", "r")
sys.stdout = open("output.txt", "w")
def main():
s = sys.stdin.readline().replace("\n", "")
if s[... | """
~~ Author : Bhaskar
~~ Dated : 16~05~2020
"""
import sys
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007
def IOE():
sys.stdin = open("input.txt", "r")
sys.stdout = open("output.txt", "w")
def main():
s = sys.stdin.readline().replace("\n", "")
if in... | [["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]] | 5 | 162 |
N = input()
if N[-1] == 3:
print('bon')
elif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:
print('pon')
else:
print('hon') | #A
N = input()
if N[-1] == '3':
print('bon')
elif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':
print('pon')
else:
print('hon') | [["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1... | 5 | 67 |
x = list(input())
y = int(x[-1])
if y == 0 or y == 1 or y == 6 or y==8:
print('pon')
elif y == 3:
print('bon')
else:
print('pon') | x = list(input())
y = int(x[-1])
if y == 0 or y == 1 or y == 6 or y==8:
print('pon')
elif y == 3:
print('bon')
else:
print('hon') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 60 |
N = int(input())
if N % 10 in (2, 3, 5, 7, 9):
print('hon')
elif N% 10 in (0, 1, 6, 8):
print('pon')
else:
print('bon') | N = int(input())
if N % 10 in (2, 4, 5, 7, 9):
print('hon')
elif N% 10 in (0, 1, 6, 8):
print('pon')
else:
print('bon') | [["-", 0, 656, 0, 57, 15, 666, 0, 660, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 612]] | 5 | 60 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set \
tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set \
tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 323 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = (long long)(k); i < (long long)(n); i++)
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define PQ(T) priority_queue<T>
#define PQS(T) priority_queue<T, vect... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = (long long)(k); i < (long long)(n); i++)
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define PQ(T) priority_queue<T>
#define PQS(T) priority_queue<T, vect... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]] | 1 | 344 |
n = gets.to_i
n = n % 10;
if (n == 2 || n == 4 || n == 7 || n == 9)
puts "hon"
elsif n == 0 || n == 1|| n == 6 || n == 8
puts "pon"
else
puts "bon"
end
| n = gets.to_i
n = n % 10;
if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
puts "hon"
elsif n == 0 || n == 1|| n == 6 || n == 8
puts "pon"
else
puts "bon"
end
| [["+", 0, 738, 31, 738, 31, 738, 12, 738, 12, 612], ["+", 0, 121, 15, 739, 0, 738, 31, 738, 17, 106], ["+", 15, 739, 0, 738, 31, 738, 12, 738, 31, 22], ["+", 15, 739, 0, 738, 31, 738, 12, 738, 17, 60]] | 4 | 59 |
n = input()
if n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "0":
print("pon")
elif n[-1] == "3":
print("bon")
else:
print("hon")
| n = input()
if n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "8":
print("pon")
elif n[-1] == "3":
print("bon")
else:
print("hon")
| [["-", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6]] | 5 | 77 |
#include <bits/stdc++.h>
#define ST_ARR_LEN(array) (sizeof(array) / sizeof(*array))
#define MOD 1000000007
using namespace std;
using ll = long long;
const ll MAX = LLONG_MAX;
const ll MIN = LLONG_MIN;
typedef stack<ll> llStack;
typedef queue<ll> llQueue;
typedef vector<ll> llVector;
typedef list<ll> llList;
typed... | #include <bits/stdc++.h>
#define ST_ARR_LEN(array) (sizeof(array) / sizeof(*array))
#define MOD 1000000007
using namespace std;
using ll = long long;
const ll MAX = LLONG_MAX;
const ll MIN = LLONG_MIN;
typedef stack<ll> llStack;
typedef queue<ll> llQueue;
typedef vector<ll> llVector;
typedef list<ll> llList;
typed... | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 13]] | 1 | 155 |
n = list(input())
keta = n[-1]
print(keta)
if keta == "3":
print("bon")
elif keta == "0" or keta == "1" or keta == "6" or keta == "8":
print("pon")
else:
print("hon") | n = list(input())
keta = n[-1]
if keta == "3":
print("bon")
elif keta == "0" or keta == "1" or keta == "6" or keta == "8":
print("pon")
else:
print("hon") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 71 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define MOD 1000000007
#define INF 1e9
#define All(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;
int main() {
string s;
cin >> s;
if (s[s.size() - 1] == '3') {
cout << "bon" << endl;
} else if (s[s.size() - 1] =... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define MOD 1000000007
#define INF 1e9
#define All(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;
int main() {
string s;
cin >> s;
if (s[s.size() - 1] == '3') {
cout << "bon" << endl;
} else if (s[s.size() - 1] =... | [["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]] | 1 | 158 |
import sys, random, math
from bisect import bisect_left, bisect_right
input = sys.stdin.readline
def main():
inf = 10 ** 20
# t = int(input())
# t, a, b = map(int, input().split())
t = 1
for _ in range(1, t+1):
# print("Case #{}: ".format(_), end = '')
n = input().strip(... | import sys, random, math
from bisect import bisect_left, bisect_right
input = sys.stdin.readline
def main():
inf = 10 ** 20
# t = int(input())
# t, a, b = map(int, input().split())
t = 1
for _ in range(1, t+1):
# print("Case #{}: ".format(_), end = '')
n = input().strip(... | [["-", 15, 23, 0, 679, 12, 666, 0, 557, 0, 6], ["+", 15, 23, 0, 679, 12, 666, 0, 557, 0, 6]] | 5 | 135 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
int main() {
ll n, a;
cin >> n;
if (n / 10 == 0)
a = n;
else
a = n / 10;
if (a == 3)
cout << "bon";
else if (a == 0 || a == 1 || a == 6 || a == 8)
cout << "pon";
else
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
int main() {
ll n, a;
cin >> n;
if (n / 10 == 0)
a = n;
else
a = n % 10;
if (a == 3)
cout << "bon";
else if (a == 0 || a == 1 || a == 6 || a == 8)
cout << "pon";
else
... | [["-", 75, 76, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 17, 109]] | 1 | 100 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ll long long
#define ld long double
#define ull unsigned long long
using namespac... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define ll long long
#define ld long double
#define ull unsigned long long
using namespac... | [["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 70], ["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 13], ["-", 341, 342, 0, 16, 31, 69, 341, 342, 0, 73], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 17, 131], ["+", 341, 342, 0, 16, 31, 2, 63, 118, 119, 120], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 341, 342, 0, 16, 31, 2,... | 1 | 171 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (int i = 0; i < (n); ++i)
#define Fr(i, n) for (int i = 1; i <= (n); ++i)
#define ifr(i, n) for (int i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (int i = (n); i > 0; --i)
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(f... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (int i = 0; i < (n); ++i)
#define Fr(i, n) for (int i = 1; i <= (n); ++i)
#define ifr(i, n) for (int i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (int i = (n); i > 0; --i)
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(f... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 130 |
class ATherefore:
def solve(self, tc=0):
n = int(input())
if n % 10 in [2, 4, 5, 7, 9]:
print("hon")
elif n % 10 in [0, 1, 6, 8]:
print("pon")
else:
print("bon")
x = Atherefore()
x.solve() | class ATherefore:
def solve(self, tc=0):
n = int(input())
if n % 10 in [2, 4, 5, 7, 9]:
print("hon")
elif n % 10 in [0, 1, 6, 8]:
print("pon")
else:
print("bon")
x = ATherefore()
x.solve()
| [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 83 |
N = int(input())
n = N % 10
if n in [2, 4, 5, 7, 7]:
print('hon')
elif n in [0, 1, 6, 8]:
print('pon')
else:
print('bon')
| N = int(input())
n = N % 10
if n in [2, 4, 5, 7, 9]:
print('hon')
elif n in [0, 1, 6, 8]:
print('pon')
else:
print('bon') | [["-", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612]] | 5 | 61 |
s= list(intput())
k = int(s[-1])
if k in [2,4,7,9,5]:
print('hon')
elif k in [0,1,6,8]:
print('pon')
else:
print('bon') | s= list(input())
k = int(s[-1])
if k in [2,4,7,9,5]:
print('hon')
elif k in [0,1,6,8]:
print('pon')
else:
print('bon')
| [["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]] | 5 | 66 |
nn = input()
n = int(nn[-1])
print(n)
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
print("hon")
elif n == 0 or n == 1 or n == 6 or n == 8:
print("pon")
else:
print("bon") | nn = input()
n = int(nn[-1])
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
print("hon")
elif n == 0 or n == 1 or n == 6 or n == 8:
print("pon")
else:
print("bon") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n /= 10;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n %= 10;
if (n == 3)
cout << "bon" << endl;
else if (n == 0 || n == 1 || n == 6 || n == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
#define forr(i, a, n) for (long long int i = a; i < n; i++)
#define loop(i, a, n) for (long long int i = a; i >= n; i--)
int main() {
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
string s;
cin >> s;
if (s.back() == '2' or s.back() == '4' or s.bac... | #include <bits/stdc++.h>
using namespace std;
#define forr(i, a, n) for (long long int i = a; i < n; i++)
#define loop(i, a, n) for (long long int i = a; i >= n; i--)
int main() {
ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
string s;
cin >> s;
if (s.back() == '2' or s.back() == '4' or s.bac... | [["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104]] | 1 | 175 |
n = int(input())
na = n % 10
if n == 0:
print('pon')
elif na == 3:
print('bon')
elif na == 1 or na == 6 or na == 8:
print('pon')
else:
print('hon') | n = int(input())
na = n % 10
if n == 0:
print('pon')
elif na == 3:
print('bon')
elif na == 1 or na == 6 or na == 8 or na == 0:
print('pon')
else:
print('hon') | [["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 60], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612]] | 5 | 62 |
#include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP(i, n) for (int i = 1; i < (int)(n); ++i)
using namespace std;
int main() {
int N;
cin >> N;
if (N % 10 == 3)
cout << "bon\n";
else if (N % 10 == 1 || N % 10 == 6 || N % 10 == 7 || N %... | #include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP(i, n) for (int i = 1; i < (int)(n); ++i)
using namespace std;
int main() {
int N;
cin >> N;
if (N % 10 == 3)
cout << "bon\n";
else if (N % 10 == 1 || N % 10 == 6 || N % 10 == 8 || N %... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]] | 1 | 99 |
#------------------------------warmup----------------------------
import os
import sys
from io import BytesIO, IOBase
import math
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fileno()
self.buffer = BytesIO()
self.writable = "x" in fi... |
#------------------------------warmup----------------------------
import os
import sys
from io import BytesIO, IOBase
import math
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fileno()
self.buffer = BytesIO()
self.writable = "x" in fi... | [["-", 0, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 0, 679, 31, 679, 31, 679, 12, 666, 0, 22]] | 5 | 551 |
N = gets.chomp.split("")
t = N.last
t = t.to_i
if (t==2) or (t==4) or (t==4) or (t==7) or (t==9)
puts "hon"
elsif (t==0) or (t==1) or (t==6) or (t==8)
puts "pon"
else
puts "bon"
end | N = gets.chomp.split("")
t = N.last
t = t.to_i
if (t==2) or (t==4) or (t==5) or (t==7) or (t==9)
puts "hon"
elsif (t==0) or (t==1) or (t==6) or (t==8)
puts "pon"
else
puts "bon"
end | [["-", 31, 738, 31, 738, 12, 739, 0, 738, 12, 612], ["+", 31, 738, 31, 738, 12, 739, 0, 738, 12, 612]] | 4 | 89 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll, ll>>... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll, ll>>... | [["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]] | 1 | 157 |
import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
N = input()
hon = [2,4,5,7,9]
pon = [1,2,6,8]
if int(N[-1]) in hon:
print('hon')
elif int(N[-1]) in pon:
print('pon')
else:
print('bon')
if __... | import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
N = input()
hon = [2,4,5,7,9]
pon = [0,1,6,8]
if int(N[-1]) in hon:
print('hon')
elif int(N[-1]) in pon:
print('pon')
else:
print('bon')
if __... | [["-", 8, 196, 0, 1, 0, 662, 12, 634, 0, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 634, 0, 612]] | 5 | 122 |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int c = N % 10;
if (c == 2 || c == 4 || c == 5 || c == 7 || c == 9)
cout << "hon";
else if (c == 3)
cout << "pon";
else
cout << "bon";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int c = N % 10;
if (c == 2 || c == 4 || c == 5 || c == 7 || c == 9)
cout << "hon";
else if (c == 3)
cout << "bon";
else
cout << "pon";
return 0;
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 77 |
#include <bits/stdc++.h>
#define ll long long
#define rep(i, a, b) for (i = a; i < b; i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define vi vector<ll int>
#define CLR(a) memset((a), 0, sizeof(a))
#define mp make_pair
#define hell 1000000007
using namespace std;
#define... | #include <bits/stdc++.h>
#define ll long long
#define rep(i, a, b) for (i = a; i < b; i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define F first
#define S second
#define vi vector<ll int>
#define CLR(a) memset((a), 0, sizeof(a))
#define mp make_pair
#define hell 1000000007
using namespace std;
#define... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 1,320 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n = n % 10;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 && n == 1 && n == 6 && n == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n = n % 10;
if (n == 3) {
cout << "bon" << endl;
} else if (n == 0 || n == 1 || n == 6 || n == 8) {
cout << "pon" << endl;
} else {
cout << "hon" << endl;
}
}
| [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 81 |
// JavaProgram.cpp
// Author : Priydarshi Singh (@dryairship)
// One cat just leads to another. One bug leads to two others.
#include <bits/stdc++.h>
using namespace std;
// I like my types defined.
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> ... | // JavaProgram.cpp
// Author : Priydarshi Singh (@dryairship)
// One cat just leads to another. One bug leads to two others.
#include <bits/stdc++.h>
using namespace std;
// I like my types defined.
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 684 |
numTest = int(input())
value = numTest % 10
if value == 2 or value == 4 or value == 5 or value == 7 or value == 9 :
print('hon')
elif value == 0 or value == 1 or value == 6 or value == 8 :
print('pon')
elif value == 3 :
print(bon) | numTest = int(input())
value = numTest % 10
if value == 2 or value == 4 or value == 5 or value == 7 or value == 9 :
print('hon')
elif value == 0 or value == 1 or value == 6 or value == 8 :
print('pon')
elif value == 3 :
print('bon') | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 72 |
N = int(input())
n = N%10
if n == 3 :
print("bon")
elif n == 1 or N == 0 or N == 6 or N == 8:
print("pon")
else:
print("hon") | N = int(input())
n = N%10
if n == 3 :
print("bon")
elif n == 1 or n == 0 or n == 6 or n == 8:
print("pon")
else:
print("hon") | [["-", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["-", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 75, 665, 15, 679, 31, 679, 12, 666, 0, 22], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22]] | 5 | 55 |
package main
import (
"bufio"
"fmt"
"os"
)
var mod = 1000000007
func main() {
r := bufio.NewReader(os.Stdin)
var n string
fmt.Fscan(r, &n)
d := int(n[len(n)-1] - '0')
fmt.Println(d)
if d == 2 || d == 4 || d == 5 || d == 7 || d == 9 {
fmt.Println("hon")
} else if d == 0 || d == 1 || d == 6 || d == 8 {
... | package main
import (
"bufio"
"fmt"
"os"
)
var mod = 1000000007
func main() {
r := bufio.NewReader(os.Stdin)
var n string
fmt.Fscan(r, &n)
d := int(n[len(n)-1] - '0')
if d == 2 || d == 4 || d == 5 || d == 7 || d == 9 {
fmt.Println("hon")
} else if d == 0 || d == 1 || d == 6 || d == 8 {
fmt.Println("po... | [["-", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 25]] | 7 | 1,695 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 10 == 3)
cout << "bon" << endl;
if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 10 == 3)
cout << "bon" << endl;
else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8)
cout << "pon" << endl;
else
cout << "hon" << endl;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 78 |
N = int(input()[:-1])
if N in [2,4,5,7,9]:
print("hon")
elif N in [0,1,6,8]:
print("pon")
else:
print("bon") | N = int(input()[-1])
if N in [2,4,5,7,9]:
print("hon")
elif N in [0,1,6,8]:
print("pon")
else:
print("bon")
| [["-", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102]] | 5 | 61 |
# Code for A - ∴ (Therefore)
# Use input() to fetch data from STDIN
n = int(input())
if n % 10 in [2,4,5,7,9]:
print("hon")
elif n % 10 in [0, 6, 8]:
print("pon")
else:
print("bon")
| # Code for A - ∴ (Therefore)
# Use input() to fetch data from STDIN
n = int(input())
if n % 10 in [2,4,5,7,9]:
print("hon")
elif n % 10 in [0, 1, 6, 8]:
print("pon")
else:
print("bon")
| [["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 21]] | 5 | 60 |
N = input()
a = ["0", "1", "6", "8"]
if(N[-1] == 3):
print("bon")
elif(N[-1] in a):
print("pon")
else:
print("hon") | N = input()
a = ["0", "1", "6", "8"]
if(N[-1] == "3"):
print("bon")
elif(N[-1] in a):
print("pon")
else:
print("hon") | [["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655]] | 5 | 66 |
#include <bits/stdc++.h>
#define ll long long
#define pii_ pair<int, int>
#define mp_ make_pair
#define pb push_back
#define fi first
#define se second
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define show1(a) cout << #a << " = " << a << endl
#define show2(a, b) cout << #a << " = " << a << "; " << #b << " ... | #include <bits/stdc++.h>
#define ll long long
#define pii_ pair<int, int>
#define mp_ make_pair
#define pb push_back
#define fi first
#define se second
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define show1(a) cout << #a << " = " << a << endl
#define show2(a, b) cout << #a << " = " << a << "; " << #b << " ... | [["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]] | 1 | 214 |
S = input()
c = S[-1]
if c in ('2', '4', '5', '7', '9'):
print('hon')
elif c in ('0', '2', '6', '8'):
print('pon')
else:
print('bon')
| S = input()
c = S[-1]
if c in ('2', '4', '5', '7', '9'):
print('hon')
elif c in ('0', '1', '6', '8'):
print('pon')
else:
print('bon')
| [["-", 75, 665, 15, 666, 0, 660, 0, 557, 0, 6], ["+", 75, 665, 15, 666, 0, 660, 0, 557, 0, 6]] | 5 | 78 |
#include <bits/stdc++.h>
#include <math.h>
#define ll long long
#define IOS \
std::ios::sync_with_stdio(false); \
cin.tie(0);
#define rep(i, init, n) for (int i = init; i < n; i++)
#define scn(n) scanf("%d"... | #include <bits/stdc++.h>
#include <math.h>
#define ll long long
#define IOS \
std::ios::sync_with_stdio(false); \
cin.tie(0);
#define rep(i, init, n) for (int i = init; i < n; i++)
#define scn(n) scanf("%d"... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 433 |
#N, M = map(int, input().split())
#A = list(map(int, input().split()))
#S = str(input())
N = str(input())
hon = [2, 4, 5, 7, 9]
#print(N[-1])
if N[-1] in hon:
print("hon")
elif N[-1] == str(3):
print("bon")
else:
print("pon") | #N, M = map(int, input().split())
#A = list(map(int, input().split()))
#S = str(input())
N = str(input())
hon = ["2", "4", "5", "7", "9"]
#print(N[-1])
if N[-1] in hon:
print("hon")
elif N[-1] == str(3):
print("bon")
else:
print("pon")
| [["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655]] | 5 | 66 |
N= int(input())
n = N%10
if n == 3:
print("bon")
elif n == 1 or n == 6 or n == 8 or n == 0 :
print("pon")
else:
print(hon)
| N= int(input())
n = N%10
if n == 3:
print("bon")
elif n == 1 or n == 6 or n == 8 or n == 0 :
print("pon")
else:
print("hon")
| [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 53 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define reps(s, ... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define reps(s, ... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]] | 1 | 671 |
#include <iostream>
using namespace std;
int main() {
string N;
cin >> N;
char s = N[N.length() - 1];
if (s == '3') {
cout << "bon" << endl;
return 0;
}
if (s == '2' || s == '4' || s == '7' || s == '9') {
cout << "hon" << endl;
return 0;
} else {
cout << "pon" << endl;
}
return 0;
... | #include <iostream>
using namespace std;
int main() {
string N;
cin >> N;
char s = N[N.length() - 1];
if (s == '3') {
cout << "bon" << endl;
return 0;
}
if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
cout << "hon" << endl;
return 0;
} else {
cout << "pon" << endl;
}
... | [["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104]] | 1 | 107 |
N = str(input())
if N[-1] == '3':
print('bon')
elif N[-1] in ['0','1','6','9']:
print('pon')
else:
print('hon') | N = str(input())
if N[-1] == '3':
print('bon')
elif N[-1] in ['0','1','6','8']:
print('pon')
else:
print('hon') | [["-", 75, 665, 15, 666, 0, 634, 0, 557, 0, 6], ["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 6]] | 5 | 64 |
#include <bits/stdc++.h>
#define ll long long
#define N 1234567
using namespace std;
int main(void) {
string s;
cin >> s;
char c = s[s.size() - 1];
if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9')
puts("hon");
if (c == '0' || c == '1' || c == '6' || c == '8')
puts("pon");
else
puts(... | #include <bits/stdc++.h>
#define ll long long
#define N 1234567
using namespace std;
int main(void) {
string s;
cin >> s;
char c = s[s.size() - 1];
if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9')
puts("hon");
else if (c == '0' || c == '1' || c == '6' || c == '8')
puts("pon");
else
... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 123 |
n=int(input())
n%=10
if n==1:
print('bon')
elif n==0 or n==1 or n==6 or n==8:
print('pon')
else:
print('hon') | n=int(input())
n%=10
if n==3:
print('bon')
elif n==0 or n==1 or n==6 or n==8:
print('pon')
else:
print('hon') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 53 |
def q1():
n = int(input()[-1])
print(n)
if n in [2, 4, 5, 7, 9]:
print("hon")
return
if n in [0, 1, 6, 8]:
print("pon")
return
if n in [3]:
print("bon")
return
q1()
|
def q1():
n = int(input()[-1])
if n in [2, 4, 5, 7, 9]:
print("hon")
return
if n in [0, 1, 6, 8]:
print("pon")
return
if n in [3]:
print("bon")
return
q1()
| [["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 80 |
from sys import stdin, setrecursionlimit
setrecursionlimit(10 ** 9)
INF = 1 << 60
def input():
return stdin.readline().strip()
N = int(input())
if N in (2, 4, 5, 7, 9):
print('hon')
elif N in (0, 1, 6, 8):
print('pon')
else:
print('bon')
| from sys import stdin, setrecursionlimit
setrecursionlimit(10 ** 9)
INF = 1 << 60
def input():
return stdin.readline().strip()
N = int(input())
N %= 10
if N in (2, 4, 5, 7, 9):
print('hon')
elif N in (0, 1, 6, 8):
print('pon')
else:
print('bon')
| [["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612]] | 5 | 88 |
def main():
s = input()
if s[-1] == 3:
print("bon")
elif int(s[-1]) in [0, 1, 6, 8]:
print("pon")
else:
print("hon")
if __name__=="__main__":
main()
| def main():
s = input()
if s[-1] == "3":
print("bon")
elif int(s[-1]) in [0, 1, 6, 8]:
print("pon")
else:
print("hon")
if __name__=="__main__":
main()
| [["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 69 |
n = str(input())
if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '0':
print('hon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
else:
print('bon') | n = str(input())
if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '9':
print('hon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
else:
print('bon') | [["-", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6]] | 5 | 120 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long int
#define M 1000000007
#define pb push_back
#define pf push_front
#define ulli unsigned long long int
#define what_is(x) cerr << #x << " is " << x << endl;
const double pi = acos(-1.0);
#define... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long int
#define M 1000000007
#define pb push_back
#define pf push_front
#define ulli unsigned long long int
#define what_is(x) cerr << #x << " is " << x << endl;
const double pi = acos(-1.0);
#define... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 348 |
N = list(input())
if N[:-1] == "3":
print("bon")
elif N[:-1] in ["0","1","6","8"]:
print("pon")
else :
print("hon")
| N = list(input())
if N[-1] == "3":
print("bon")
elif N[-1] in ["0","1","6","8"]:
print("pon")
else :
print("hon")
| [["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102], ["-", 75, 665, 15, 666, 0, 206, 206, 663, 0, 102]] | 5 | 66 |
n=input()
if n[-1] == '3':
print('bon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
else:
print('bon') | n=input()
if n[-1] == '3':
print('bon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
print('pon')
else:
print('hon') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 77 |
#include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll n;
cin >> n;
n = n % 10;
if (n == 3) {
cout << 'bon' << endl;
} else ... | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll n;
cin >> n;
n = n % 10;
if (n == 3) {
cout << "bon" << endl;
} else ... | [["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 117 |
#include <bits/stdc++.h>
//#include<boost/multiprecision/cpp_int.hpp>
#define mod 1000000007
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (a); i >= (b); i--)
#define T(a) ... | #include <bits/stdc++.h>
//#include<boost/multiprecision/cpp_int.hpp>
#define mod 1000000007
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (a); i >= (b); i--)
#define T(a) ... | [["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 62]] | 1 | 1,005 |
import math, sys
from bisect import bisect_left, bisect_right
from collections import Counter, defaultdict, deque
from copy import deepcopy
from functools import lru_cache
from heapq import heapify, heappop, heappush
from itertools import accumulate, combinations, permutations
input = sys.stdin.readline
mod = 10**9 + 7... | import math, sys
from bisect import bisect_left, bisect_right
from collections import Counter, defaultdict, deque
from copy import deepcopy
from functools import lru_cache
from heapq import heapify, heappop, heappush
from itertools import accumulate, combinations, permutations
input = sys.stdin.readline
mod = 10**9 + 7... | [["+", 0, 662, 12, 652, 3, 4, 0, 634, 0, 70], ["+", 0, 662, 12, 652, 3, 4, 0, 634, 0, 73]] | 5 | 197 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int N;
scanf("%d", &N);
if (N % 10 == 3)
printf("bon");
else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == '8')
printf("pon");
else
printf("hon");
return 0;
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int N;
scanf("%d", &N);
if (N % 10 == 3)
printf("bon");
else if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8)
printf("pon");
else
printf("hon");
return 0;
} | [["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
const int MAX{200010};
const ll MOD{1000000007}, oo{1LL << 62};
ll solve(int N, const vector<ll> &xs) { return 0; }
int main() {
ios::sync_with_stdio(false);
int N;
cin >> N;
int d = N % 10;
if (d == 3)
c... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
const int MAX{200010};
const ll MOD{1000000007}, oo{1LL << 62};
ll solve(int N, const vector<ll> &xs) { return 0; }
int main() {
ios::sync_with_stdio(false);
int N;
cin >> N;
int d = N % 10;
if (d == 3)
c... | [["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 354], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 135 |
N = int(input()) % 10
if N in [2, 3, 5, 7, 9]:
print('hon')
elif N == 3:
print('bon')
else:
print('pon') | N = int(input()) % 10
if N in [2, 4, 5, 7, 9]:
print('hon')
elif N == 3:
print('bon')
else:
print('pon') | [["-", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612]] | 5 | 50 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int mod = n % 10;
cout << (mod == 3 ? "bon"
: (mod == 0 || mod == 1 || mod == 6 || mod == 0) ? "pon"
: "hon")
<< endl;
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int mod = n % 10;
cout << (mod == 3 ? "bon"
: (mod == 0 || mod == 1 || mod == 6 || mod == 8) ? "pon"
: "hon")
<< endl;
... | [["-", 75, 41, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 75, 41, 15, 23, 0, 16, 12, 16, 12, 13]] | 1 | 69 |
def main():
import sys
N=int(sys.stdin.readline())
if N%10 in [2,4,5,7,9]:
print('hon')
elif N%10 in [0,1,6,8]:
print('bon')
else:
print('bon')
main() | def main():
import sys
N=int(sys.stdin.readline())
if N%10 in [2,4,5,7,9]:
print('hon')
elif N%10 in [0,1,6,8]:
print('pon')
else:
print('bon')
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
//#pragma gcc optimize("O3,unroll-loop")
//#pragma gcc
//target("sse,sse2,sse3,ssse3,sse4,avx,avx2,fma,abm,mmx,popcnt,tune=native")
//#define int long long
//#define double long double
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int a;
cin >> a;... | #include <bits/stdc++.h>
using namespace std;
//#pragma gcc optimize("O3,unroll-loop")
//#pragma gcc
//target("sse,sse2,sse3,ssse3,sse4,avx,avx2,fma,abm,mmx,popcnt,tune=native")
//#define int long long
//#define double long double
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int a;
cin >> a;... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 108 |
a = input()[0]
if a in "24579":
print("hon")
elif a in "0168":
print("pon")
else:
print("bon") | a = input()[-1]
if a in "24579":
print("hon")
elif a in "0168":
print("pon")
else:
print("bon") | [["-", 0, 656, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define per(i, a, b) for (int i = b - 1; i >= a; i--)
#define trav(a, x) for (auto &a : x)
#define allin(a, x) for (auto a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
... | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define per(i, a, b) for (int i = b - 1; i >= a; i--)
#define trav(a, x) for (auto &a : x)
#define allin(a, x) for (auto a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 252 |
n = int(input())
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
print('hon')
elif n == 3:
print('bon')
else:
print('pon') | n = int(input())
n = n % 10
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
print('hon')
elif n == 3:
print('bon')
else:
print('pon') | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 54 |
n = int(input())
n %= 10
if n==3:
print("bon")
elif n in (0,1,6,7):
print("pon")
else:
print("hon")
| n = int(input())
n %= 10
if n==3:
print("bon")
elif n in (0,1,6,8):
print("pon")
else:
print("hon")
| [["-", 0, 57, 75, 665, 15, 666, 0, 660, 0, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 660, 0, 612]] | 5 | 49 |
package main
import "fmt"
func main() {
var N int
fmt.Scan(&N)
switch N {
case 0, 1, 6, 8:
fmt.Println("pon")
case 3:
fmt.Println("bon")
default:
fmt.Println("hon")
}
}
| package main
import "fmt"
func main() {
var N int
fmt.Scan(&N)
switch N % 10 {
case 0, 1, 6, 8:
fmt.Println("pon")
case 3:
fmt.Println("bon")
default:
fmt.Println("hon")
}
}
| [["+", 0, 435, 8, 196, 0, 459, 51, 16, 17, 109], ["+", 0, 435, 8, 196, 0, 459, 51, 16, 12, 433]] | 7 | 73 |
#include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define ll long ... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define ll long ... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 223 |
#include <iostream>
#define ll long long
#define pii pair<int, int>
#define fst first
#define snd second
using namespace std;
int main() {
ios ::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
if (n % 10 == 3) {
cout << "bon\n";
} else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n ... | #include <iostream>
#define ll long long
#define pii pair<int, int>
#define fst first
#define snd second
using namespace std;
int main() {
ios ::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
if (n % 10 == 3) {
cout << "bon\n";
} else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 118 |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
const int mod = 1000000007;
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define ll long long
... | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
const int mod = 1000000007;
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define ll long long
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 107 |
N=int(input())
S=list(input())
if len(S)<=N:
for i in range(len(S)):
print(S[i],end="")
else:
for i in range(N):
print(S[i],end="") | N=int(input())
S=list(input())
if len(S)<=N:
for i in range(len(S)):
print(S[i],end="")
else:
for i in range(N):
print(S[i],end="")
print("...") | [["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
string S;
cin >> S;
for (int i = 0; i < K; i++) {
if (S.size() >= K)
cout << S.at(i);
}
if (S.size() >= K)
cout << "...";
else if (S.size() < K)
cout << S;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
cin >> K;
string S;
cin >> S;
for (int i = 0; i < K; i++) {
if (S.size() > K)
cout << S.at(i);
}
if (S.size() > K)
cout << "...";
else if (S.size() <= K)
cout << S;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 92 |
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_m... | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_m... | [["-", 0, 652, 3, 4, 0, 657, 12, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 6]] | 5 | 173 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int k;
cin >> k >> s;
if (s.length() < k) {
} else {
s = s.substr(0, k) + "...";
}
cout << s << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int k;
cin >> k >> s;
if (s.length() <= k) {
} else {
s = s.substr(0, k) + "...";
}
cout << s << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.